Skip to content

Commit

Permalink
docs: resolve duplicate key prop errors in side navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Sep 24, 2024
1 parent c28dfe7 commit 8c64588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-docs/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const Sidebar = forwardRef((
if (heading) {
return (
<Text
key={title}
key={`${sectionTitle} > ${title}`}
color={colorStyle?.color?.tertiary}
fontSize="xs"
lineHeight="xs"
Expand All @@ -231,7 +231,7 @@ const Sidebar = forwardRef((

return (
<NavLink
key={title}
key={path}
data-path={path}
data-track={`SideMenu|click_menu_item|${x({ path: navigateTo, title: [sectionTitle, title].join(' > ') })}`}
isActive={isActive}
Expand Down

0 comments on commit 8c64588

Please sign in to comment.