Update src/components/UI/docs/DocsNav.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
This commit is contained in:
parent
d7ea2df124
commit
62aff31a2e
|
@ -17,12 +17,10 @@ interface Props {
|
|||
}
|
||||
|
||||
export const DocsNav: FC<Props> = ({ navLinks }) => {
|
||||
const OPEN = 0;
|
||||
const CLOSED = -1;
|
||||
const [mobileAccordionState, setMobileAccordionState] = useState(CLOSED)
|
||||
const [isMobileAccordionOpen, setIsMobileAccordionOpen] = useState(false)
|
||||
|
||||
const updateMobileAccordionState = () => {
|
||||
setMobileAccordionState(mobileAccordionState === OPEN ? CLOSED : OPEN)
|
||||
const toggleMobileAccordion = () => {
|
||||
setMobileAccordionState(prev => !prev)
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue