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 &&