diff --git a/frontend/app/components/AppShell.tsx b/frontend/app/components/AppShell.tsx index 69bb3b2..25ffafa 100644 --- a/frontend/app/components/AppShell.tsx +++ b/frontend/app/components/AppShell.tsx @@ -1,43 +1,44 @@ "use client"; -import CommandPalette from "./CommandPalette"; -import NotificationsPanel from "./NotificationsPanel"; import { usePathname } from "next/navigation"; + +import CommandPalette from "./CommandPalette"; import Sidebar from "./Sidebar"; +import TopNavbar from "./TopNavbar"; -export default function AppShell({ children }: { children: React.ReactNode }) { +export default function AppShell({ + children, +}: { + children: React.ReactNode; +}) { const pathname = usePathname(); const isPublicRoute = - pathname === "/" || pathname === "/login" || pathname === "/signup"; - const isInsightsRoute = pathname?.startsWith("/insights"); + pathname === "/" || + pathname === "/login" || + pathname === "/signup"; + + const isInsightsRoute = + pathname?.startsWith("/insights"); - const hideSidebar = isPublicRoute || isInsightsRoute; + const hideSidebar = + isPublicRoute || isInsightsRoute; - // Let Insights pages control their own padding + // Insights pages manage their own spacing const mainClass = hideSidebar ? "min-w-0 flex-1 overflow-x-hidden" : "min-w-0 flex-1 overflow-x-hidden p-6"; return ( -