Update src/components/UI/docs/DocsNav.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
pull/26459/head^2
Corwin Smith 2 years ago committed by GitHub
parent d7ea2df124
commit 62aff31a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/components/UI/docs/DocsNav.tsx

@ -17,12 +17,10 @@ interface Props {
} }
export const DocsNav: FC<Props> = ({ navLinks }) => { export const DocsNav: FC<Props> = ({ navLinks }) => {
const OPEN = 0; const [isMobileAccordionOpen, setIsMobileAccordionOpen] = useState(false)
const CLOSED = -1;
const [mobileAccordionState, setMobileAccordionState] = useState(CLOSED)
const updateMobileAccordionState = () => { const toggleMobileAccordion = () => {
setMobileAccordionState(mobileAccordionState === OPEN ? CLOSED : OPEN) setMobileAccordionState(prev => !prev)
} }
return ( return (

Loading…
Cancel
Save