Skip to content

Commit

Permalink
Fix bug with navbar showing up on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
bombies committed Oct 25, 2023
1 parent 12e0756 commit 204eecd
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/app/(site)/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const NavBar: FC = () => {
return (
<Navbar
onMenuOpenChange={setMenuOpen}
className={clsx(pathName.includes("/dashboard") || pathName.includes("/signin") && "hidden")}
className={clsx((pathName.includes("/dashboard") || pathName.includes("/signin")) && "hidden")}
classNames={{
base: 'bg-[#0C0015]'
}}
Expand All @@ -54,33 +54,33 @@ const NavBar: FC = () => {
<NavbarContent justify="end" className="laptop:hidden gap-4">
{
authStatus !== 'authenticated' &&
(
<Fragment>
<NavbarItem>
<Button
color="secondary"
onPress={() => router.push("/signin")}
>
Log In
</Button>
</NavbarItem>
<NavbarItem>
<Button
color="cta"
variant="shadow"
onPress={() => router.push("/signin?tab=register")}
>
Sign Up
</Button>
</NavbarItem>
</Fragment>
)
(
<Fragment>
<NavbarItem>
<Button
color="secondary"
onPress={() => router.push("/signin")}
>
Log In
</Button>
</NavbarItem>
<NavbarItem>
<Button
color="cta"
variant="shadow"
onPress={() => router.push("/signin?tab=register")}
>
Sign Up
</Button>
</NavbarItem>
</Fragment>
)
}
</NavbarContent>
{
authStatus === 'authenticated' && (
<NavbarContent justify='end'>
<UserProfile />
<UserProfile/>
</NavbarContent>
)
}
Expand Down

0 comments on commit 204eecd

Please sign in to comment.