From 4dd5ef3ac16d94fabc844f9a19f65fd95ebe8bca Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 20 Jan 2026 15:11:31 +0100 Subject: [PATCH] agenda finition --- components/layout/layout-wrapper.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/layout/layout-wrapper.tsx b/components/layout/layout-wrapper.tsx index beffe26..2e070c2 100644 --- a/components/layout/layout-wrapper.tsx +++ b/components/layout/layout-wrapper.tsx @@ -2,6 +2,7 @@ import { useEffect } from "react"; import { useSession, signOut } from "next-auth/react"; +import { usePathname } from "next/navigation"; import { MainNav } from "@/components/main-nav"; import { Footer } from "@/components/footer"; import { AuthCheck } from "@/components/auth/auth-check"; @@ -26,6 +27,8 @@ interface LayoutWrapperProps { export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: LayoutWrapperProps) { const { currentBackground, changeBackground } = useBackgroundImage(); const { data: session } = useSession(); + const pathname = usePathname(); + const isAgendaPage = pathname === '/agenda'; // Listen for incoming RocketChat calls via WebSocket const { incomingCall, setIncomingCall } = useRocketChatCalls(); @@ -230,7 +233,8 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou >
{children}
- {!isSignInPage && isAuthenticated &&