File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ const SidebarGroup: FC<SidebarGroupProps> = ({
2525 < label className = { styles . groupName } > { groupName } </ label >
2626 < ul className = { styles . itemList } >
2727 { items . map ( ( { label, link } ) => (
28- < li key = { link } >
29- < SidebarItem label = { label } link = { link } { ...props } />
30- </ li >
28+ < SidebarItem key = { link } label = { label } link = { link } { ...props } />
3129 ) ) }
3230 </ ul >
3331 </ section >
Original file line number Diff line number Diff line change @@ -15,18 +15,20 @@ type SidebarItemProps = {
1515} ;
1616
1717const SidebarItem : FC < SidebarItemProps > = ( { label, link, ...props } ) => (
18- < BaseActiveLink
19- className = { styles . item }
20- href = { link }
21- activeClassName = { styles . active }
22- { ...props }
23- >
24- < div className = { styles . label } >
25- < span > { label } </ span >
18+ < li >
19+ < BaseActiveLink
20+ className = { styles . item }
21+ href = { link }
22+ activeClassName = { styles . active }
23+ { ...props }
24+ >
25+ < div className = { styles . label } >
26+ < span > { label } </ span >
2627
27- { / ^ h t t p s ? : / . test ( link ) && < ArrowUpRightIcon className = { styles . icon } /> }
28- </ div >
29- </ BaseActiveLink >
28+ { / ^ h t t p s ? : / . test ( link ) && < ArrowUpRightIcon className = { styles . icon } /> }
29+ </ div >
30+ </ BaseActiveLink >
31+ </ li >
3032) ;
3133
3234export default SidebarItem ;
You can’t perform that action at this time.
0 commit comments