Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(ui): allow all users to book a call (#14391)

annabellscha27980b0ef979
diff --git a/web/src/components/nav/book-a-call-button.tsx b/web/src/components/nav/book-a-call-button.tsx
index aa6335e53e..dafde5bf60 100644
--- a/web/src/components/nav/book-a-call-button.tsx
+++ b/web/src/components/nav/book-a-call-button.tsx
@@ -1,31 +1,10 @@
import { CalendarDays } from "lucide-react";
import { SidebarMenuButton } from "@/src/components/ui/sidebar";
-import useLocalStorage from "@/src/components/useLocalStorage";
import Link from "next/link";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
-const SEVEN_DAYS_MS = 7 * 24 * 60 * 60 * 1000;
-const FIRST_SEEN_KEY = "book-a-call-first-seen";
-
export const BookACallButton = () => {
const capture = usePostHogClientCapture();
- const [firstSeen, setFirstSeen] = useLocalStorage<number | null>(
- FIRST_SEEN_KEY,
- null,
- );
-
- // Set first seen timestamp if not already set
- if (firstSeen === null) {
- setFirstSeen(Date.now());
- }
-
- // Hide button after 7 days from first seen
- const isExpired =
- firstSeen !== null && Date.now() > firstSeen + SEVEN_DAYS_MS;
-
- if (isExpired) {
- return null;
- }
return (
<SidebarMenuButton asChild>