Skip to content

Commit

Permalink
fix(ProjectPageLayout): add right key for links in TabsMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Jan 30, 2023
1 parent 83cd385 commit 63a7d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ProjectPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const ProjectPageLayout: React.FC<ProjectPageLayoutProps> = ({ project, c
<TabsMenu>
{tabsMenuOptions.map(([title, href, ownerOnly]) =>
nullable(ownerOnly ? user?.activityId === project.activityId : true, () => (
<NextLink key={href} href={href} passHref>
<NextLink key={title} href={href} passHref>
<TabsMenuItem active={router.asPath === href}>{title}</TabsMenuItem>
</NextLink>
)),
Expand Down

0 comments on commit 63a7d67

Please sign in to comment.