mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 16:47:22 +00:00
Update src/components/UI/docs/DocsLinks.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
This commit is contained in:
parent
5973cf8cd5
commit
d3e53af95f
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ export const DocsLinks: FC<Props> = ({ 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];
|
||||
const index = openSections[id] ? 0 : -1;
|
||||
|
||||
return (
|
||||
<Accordion key={id} index={isSectionActive ? 0 : -1} allowToggle mt='0 !important'>
|
||||
|
|
|
|||
Loading…
Reference in a new issue