diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index abb842d..3d2ab9a 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -2,6 +2,7 @@ import Link from "next/link"; import { useSession, signOut } from "next-auth/react"; +import { usePathname } from "next/navigation"; import { Button } from "@/components/ui/button"; import { CreditDisplay } from "./CreditDisplay"; import { @@ -15,6 +16,12 @@ import { Avatar, AvatarFallback } from "@/components/ui/avatar"; export function Navbar() { const { data: session, status } = useSession(); + const pathname = usePathname(); + + // Hide the main navbar on space pages — SpaceNav handles navigation there + if (pathname.startsWith("/s/")) { + return null; + } return (