Skip to content

Commit

Permalink
fix: add keys to menu items (#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Oct 16, 2023
1 parent e2cbd3f commit 49ba3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/Layout/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const Menu: React.FC = () => {
>
<div className="mb-6">
{menuItems.map(menuItem => (
<NavLink onClick={toggleMobileMenu} {...menuItem} />
<NavLink onClick={toggleMobileMenu} key={menuItem.i18nKey} {...menuItem} />
))}
</div>

Expand All @@ -88,7 +88,7 @@ export const Menu: React.FC = () => {

<div className="flex-1 overflow-auto px-3 py-6 xl:w-full xl:px-0">
{menuItems.map(menuItem => (
<NavLink onClick={toggleMobileMenu} {...menuItem} />
<NavLink onClick={toggleMobileMenu} key={menuItem.i18nKey} {...menuItem} />
))}
</div>
</div>
Expand Down

0 comments on commit 49ba3db

Please sign in to comment.