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

pull/26459/head^2
Corwin Smith 2 years ago committed by GitHub
parent f58ed4dfd1
commit 80e455812a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/UI/docs/DocsLinks.tsx

@ -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 }) => (
<>

Loading…
Cancel
Save