Remove defaultIndex from Accordion to have them default closed (#144)

This commit is contained in:
Corwin Smith 2022-12-12 18:20:49 +01:00 committed by GitHub
parent f58ed4dfd1
commit 80e455812a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export const DocsLinks: FC<Props> = ({ navLinks }) => {
const split = to?.split('/');
const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1];
return (
<Accordion key={id} allowToggle mt='0 !important' defaultIndex={[0]}>
<Accordion key={id} allowToggle mt='0 !important'>
<AccordionItem border='none'>
{({ isExpanded }) => (
<>