Skip to content

Commit

Permalink
Add ability to select collapsible nav item
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Dec 18, 2024
1 parent 73cb1db commit b1e8156
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/UnifiedSidenav/UnifiedSidenav.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ function CollapsibleNavItem({ items, label, url, level = 1 }) {
setIsOpen(!isOpen);
};

console.log();
return (
<>
<SideNavItem
hideExternalIcon={true}
as="a"
as={Link}
to={url}
active={isSelectedTab(url)}
className={cx(sideNavItemTOCStyling({ level }))}
onClick={() => setIsOpen(!isOpen)}
Expand Down Expand Up @@ -92,7 +92,6 @@ export function UnifiedSidenav() {
return (
<>
<Global />

<SideNav
widthOverride={300}
className={css`
Expand Down

0 comments on commit b1e8156

Please sign in to comment.