Skip to content

Commit

Permalink
fix: expose resetNextUuid (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadbrokaw authored Nov 13, 2024
1 parent 9dd1d9e commit c5c78be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sections/ResponsiveContentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ import {
AccordionItemHeading,
AccordionItemButton,
AccordionItemPanel,
resetNextUuid,
} from "react-accessible-accordion"

export interface ResponsiveContentProps {
children: React.ReactNode
desktopClass?: string
}

const resetAccordionUuid = () => {
resetNextUuid()
}

const ResponsiveContentList = (props: ResponsiveContentProps) => (
<>
<Mobile>
Expand Down Expand Up @@ -64,4 +69,5 @@ export {
ResponsiveContentItem,
ResponsiveContentItemHeader,
ResponsiveContentItemBody,
resetAccordionUuid,
}

0 comments on commit c5c78be

Please sign in to comment.