From 9456c6f73f82a311aae74ab58b2747db3bd4f6bc Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 12 Feb 2026 21:29:57 -0700 Subject: [PATCH] Hide main navbar on space pages, clean up nav links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Space pages use SpaceNav for navigation — the root Navbar with Sign In/Sign Up buttons was redundant and confusing there. Co-Authored-By: Claude Opus 4.6 --- src/components/Navbar.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 (