From 6d734b598a864e9132d9d3f530cbbabadb1b51b1 Mon Sep 17 00:00:00 2001 From: Roger Chappel Date: Mon, 25 May 2026 07:24:05 +1000 Subject: [PATCH] fix: render login without app chrome --- src/components/app-shell.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/app-shell.tsx b/src/components/app-shell.tsx index 9482891e..16faaa30 100644 --- a/src/components/app-shell.tsx +++ b/src/components/app-shell.tsx @@ -1,9 +1,20 @@ "use client"; +import { usePathname } from "next/navigation"; import { Sidebar } from "@/components/sidebar"; import { AppTray } from "@/components/app-tray"; +function isChromeHiddenRoute(pathname: string) { + return pathname === "/" || pathname === "/access-denied" || pathname.startsWith("/invite/"); +} + export function AppShell({ children }: { children: React.ReactNode }) { + const pathname = usePathname(); + + if (isChromeHiddenRoute(pathname)) { + return
{children}
; + } + return (