Skip to content

Commit

Permalink
fix: remove html ids and unnecessary keys from the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Jul 26, 2021
1 parent 4078390 commit 80b3aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ export const NewMenu = ({ flyoutAlignment = FlyoutAlignment.RIGHT, ToggleUI, men
<NewMenuFlyout flyoutAlignment={flyoutAlignment}>
{menuItems.map(({ content, link, external }, i) =>
external ? (
<ExternalMenuItem id="link" href={link} key={link + i}>
<ExternalMenuItem href={link} key={i}>
{content}
</ExternalMenuItem>
) : (
<NewMenuItem id="link" to={link} key={link + i}>
<NewMenuItem to={link} key={i}>
{content}
</NewMenuItem>
)
Expand Down

1 comment on commit 80b3aa9

@vercel
Copy link

@vercel vercel bot commented on 80b3aa9 Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.