Skip to content

Commit

Permalink
Fix key warning from react
Browse files Browse the repository at this point in the history
  • Loading branch information
AnumQ committed Aug 1, 2024
1 parent 52e241b commit a095be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default function Index() {
(acc: MenuItem[], curr: MenuDropDown) => [...acc, ...curr.subMenus],
[]
)
.map((item) => (
<Link to={item.path}>
.map((item, index) => (
<Link key={index} to={item.path}>
<Box padding="10" borderRadius={'medium'} borderWidth="1">
{item.title}
</Box>
Expand Down

0 comments on commit a095be3

Please sign in to comment.