mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 16:05:33 -04:00
refactor font preloading
This commit is contained in:
@@ -50,7 +50,7 @@ const Menu = ({ ...rest }: MenuProps) => {
|
||||
const isCurrent = item.href === `/${router.pathname.split("/")[1]}`;
|
||||
|
||||
return (
|
||||
<Item key={index}>
|
||||
<Item key={item.text || index}>
|
||||
<MenuItem {...item} current={isCurrent} />
|
||||
</Item>
|
||||
);
|
||||
|
Reference in New Issue
Block a user