agenda finition

This commit is contained in:
alma 2026-01-20 22:54:16 +01:00
parent de4cceaf3d
commit d86fac9c67

View File

@ -28,7 +28,12 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
const { currentBackground, changeBackground } = useBackgroundImage();
const { data: session } = useSession();
const pathname = usePathname();
const isAgendaPage = pathname === '/agenda';
const isAgendaPage = pathname?.startsWith('/agenda') || pathname === '/agenda';
// Debug: log pour vérifier le pathname
useEffect(() => {
console.log('[LayoutWrapper] pathname:', pathname, 'isAgendaPage:', isAgendaPage);
}, [pathname, isAgendaPage]);
// Listen for incoming RocketChat calls via WebSocket
const { incomingCall, setIncomingCall } = useRocketChatCalls();
@ -234,7 +239,8 @@ export function LayoutWrapper({ children, isSignInPage, isAuthenticated }: Layou
<main>{children}</main>
</div>
{/* TEMPORAIRE : Footer masqué uniquement sur la page agenda pour test layout */}
{!isSignInPage && isAuthenticated && !isAgendaPage && <Footer />}
{/* Force masquage pour test - pathname: ${pathname}, isAgendaPage: ${isAgendaPage} */}
{!isSignInPage && isAuthenticated && !isAgendaPage && pathname !== '/agenda' && <Footer />}
<Toaster />
{/* Notifications stack (calls and emails) */}