Skip to content

Commit

Permalink
feat(web): back to home on logo click
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Jun 19, 2024
1 parent ee979e7 commit 1481678
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions apps/web/src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from "next/link";
import { Alert, AlertDescription, AlertTitle } from "@/components/alert";
import { SidebarButton } from "@/components/sidebar/sidebar-button";
import { UserButton } from "@/components/user";
Expand Down Expand Up @@ -25,12 +26,14 @@ export async function Navbar() {
</Alert>
)}
<div className="flex h-16 items-center justify-between px-4 sm:px-8">
<Logo
className={cn("hidden h-7 sm:h-9 md:block", {
invisible: isAdmin,
block: !isAdmin,
})}
/>
<Link href="/">
<Logo
className={cn("hidden h-7 sm:h-9 md:block", {
invisible: isAdmin,
block: !isAdmin,
})}
/>
</Link>
<SidebarButton user={session?.user} />
<UserButton user={session?.user} />
</div>
Expand Down

0 comments on commit 1481678

Please sign in to comment.