1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-13 19:35:31 -04:00

random organization

This commit is contained in:
2022-04-28 19:28:16 -04:00
parent 9e8c3eaa67
commit 383c88d5ef
5 changed files with 39 additions and 33 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
import { memo } from "react";
import { useRouter } from "next/router";
import MenuItem from "../MenuItem";
import ThemeToggle from "../ThemeToggle";
import { styled } from "../../lib/styles/stitches.config";
import { menuItems } from "../../lib/config/menu";
import type { ComponentProps } from "react";
@@ -22,9 +23,9 @@ const Wrapper = styled("ul", {
});
const Item = styled("li", {
listStyle: "none",
display: "inline-block",
marginLeft: "1em",
listStyle: "none",
"@medium": {
marginLeft: 0,
@@ -51,6 +52,10 @@ const Menu = ({ ...rest }: MenuProps) => {
<MenuItem {...item} current={item.href === `/${router.pathname.split("/")[1]}`} />
</Item>
))}
<Item>
<MenuItem icon={ThemeToggle} />
</Item>
</Wrapper>
);
};