small fix about link index

This commit is contained in:
tangly1024
2023-11-26 21:36:09 +08:00
parent 23ac2195c9
commit bf1597093c
15 changed files with 16 additions and 25 deletions

View File

@@ -30,9 +30,7 @@ export const MenuBarMobile = (props) => {
return (
<nav id='nav' className=' text-md'>
{/* {links.map(link => <NormalMenu key={link?.id} link={link}/>)} */}
{links?.map((link, index) => <MenuItemCollapse onHeightChange={props.onHeightChange} key={index} link={link}/>)}
</nav>
)
}