diff --git a/src/components/UI/docs/DocsLinks.tsx b/src/components/UI/docs/DocsLinks.tsx index 014291746b..808c6e23b1 100644 --- a/src/components/UI/docs/DocsLinks.tsx +++ b/src/components/UI/docs/DocsLinks.tsx @@ -51,8 +51,10 @@ export const DocsLinks: FC = ({ navLinks, toggleMobileAccordion }) => { {navLinks.map(({ id, to, items }, idx) => { const split = to?.split('/'); const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1]; + const isSectionActive = openSections[id]; + return ( - + {({ isExpanded }) => ( <>