diff --git a/components/nav-bar.tsx b/components/nav-bar.tsx index 6cca751..f91b280 100644 --- a/components/nav-bar.tsx +++ b/components/nav-bar.tsx @@ -31,90 +31,69 @@ export function NavBar() { > - {session?.user && ( -
- {navLinks.map((link) => { - const isActive = - link.href === "/dashboard" - ? pathname === "/dashboard" - : pathname.startsWith(link.href); - return ( - - {link.label} - {isActive && ( - - )} - - ); - })} -
- )} +
+ {navLinks.map((link) => { + const isActive = + link.href === "/dashboard" + ? pathname === "/dashboard" + : pathname.startsWith(link.href); + return ( + + {link.label} + {isActive && ( + + )} + + ); + })} +
- {session?.user ? ( - <> - {/* Search trigger pill */} - -
- - {session.user.name} - - - - - -
- - ) : ( - <> - - Sign in - - - Register - - - )} + {/* Search trigger pill */} + +
+ + {session?.user?.name} + + + + + +