Skip to content

Commit

Permalink
feat: add lists link to global top nav (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
OgDev-01 authored Oct 11, 2023
1 parent ab4d5bd commit 9dd61be
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions components/organisms/TopNav/top-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@ const Nav = ({ className, name = "Main" }: { className?: string; name?: string }
<nav className={className} aria-label={name}>
<ul className="flex w-full gap-3 mb-3 ml-2 md:gap-8 sm:m-0 sm:w-auto">
{!!user && (
<li>
<Link className={`text-sm ${getActiveStyle(router.asPath === "/hub/insights")}`} href={"/hub/insights"}>
Insights
</Link>
</li>
<>
<li>
<Link className={`text-sm ${getActiveStyle(router.asPath === "/hub/insights")}`} href={"/hub/insights"}>
Insights
</Link>
</li>
<li>
<Link className={`text-sm ${getActiveStyle(router.asPath === "/hub/lists")}`} href={"/hub/lists"}>
Lists
</Link>
</li>
</>
)}
<li>
<Link
Expand Down

0 comments on commit 9dd61be

Please sign in to comment.