Skip to content

Commit

Permalink
fix: show link to hub list page in nav (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
OgDev-01 authored Oct 11, 2023
1 parent 837ae8a commit 099b1aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/hub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const HubLayout = ({ children }: { children: React.ReactNode }) => {
const { user } = useSupabaseAuth();
const navLinks = [
{ name: "Insights", href: "/hub/insights" },
// { name: "Lists", href: "/hub/lists" },
{ name: "Lists", href: "/hub/lists" },
];
const router = useRouter();

Expand Down Expand Up @@ -87,11 +87,11 @@ const HubLayout = ({ children }: { children: React.ReactNode }) => {
</div>
{router.pathname.split("/")[2] === "insights" ? (
<Button href="/hub/insights/new" variant="primary">
Add Insight Page
New Insight
</Button>
) : (
<Button href="/hub/lists/new" variant="primary">
Add List
New List
</Button>
)}
</div>
Expand Down

0 comments on commit 099b1aa

Please sign in to comment.