Skip to content

Commit

Permalink
+ Nav link to store
Browse files Browse the repository at this point in the history
  • Loading branch information
molly committed Sep 19, 2024
1 parent 708d9a6 commit 5fc29d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/navigation/NavigationBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import NavigationDropdown from "./NavigationDropdown";
import { useRouter } from "next/router";
import { NAVIGATION } from "../../constants/navigation";
import NavigationDropdown from "./NavigationDropdown";
import NavigationLink from "./NavigationLink";

// Only renders for breakpoints >= MD
Expand All @@ -14,7 +14,7 @@ export default function NavigationBar() {
}
return (
<NavigationLink
key={navItem.path}
key={navItem.path || navItem.label}
{...navItem}
className="navigation-entry"
/>
Expand Down
12 changes: 8 additions & 4 deletions src/constants/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ export const NAVIGATION = [
key: "follow-header",
children: [
...SOCIAL,
{
label: "Newsletter",
href: "https://citationneeded.news/",
},
{
label: "RSS",
path: "/feed.xml",
Expand All @@ -75,4 +71,12 @@ export const NAVIGATION = [
label: "Contribute",
path: "/contribute",
},
{
label: "Newsletter",
href: "https://citationneeded.news/",
},
{
label: "Store",
href: "https://store.mollywhite.net/",
},
];

0 comments on commit 5fc29d0

Please sign in to comment.