Skip to content

Commit 2bb377b

Browse files
committed
Sidebar themes
1 parent 0dcdfe7 commit 2bb377b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/SideBar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ export function SideBar() {
9090

9191
return (
9292
<Container>
93-
{CATEGORIES.map((e) => (
94-
<>
93+
{CATEGORIES.map((e, i) => (
94+
<React.Fragment key={i}>
9595
<Category>{e.category}</Category>
96-
{e.items.map((e) => (
97-
<Link href={e.url} passHref>
96+
{e.items.map((e, i) => (
97+
<Link key={i} href={e.url} passHref>
9898
<Item current={router.asPath === e.url}>{e.name}</Item>
9999
</Link>
100100
))}
101-
</>
101+
</React.Fragment>
102102
))}
103103
</Container>
104104
);

0 commit comments

Comments
 (0)