Skip to content

Commit

Permalink
Fix StandardShell links not having keys
Browse files Browse the repository at this point in the history
  • Loading branch information
limdingwen committed Jul 28, 2024
1 parent 556dae0 commit 17b1ba0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion site/src/app/components/StandardShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ type PageLink = {

function generateButtonsFromLinks(links: PageLink[]) {
return links.map(({ name, href }) => (
<UnstyledButton className={classes.control} component={Link} href={href}>
<UnstyledButton
key={href}
className={classes.control}
component={Link}
href={href}
>
{name}
</UnstyledButton>
));
Expand Down

0 comments on commit 17b1ba0

Please sign in to comment.