no need to lock scrolling on mobile after jank fix

This commit is contained in:
Youwen Wu 2024-02-12 23:37:06 -08:00
parent d790e981c4
commit bd0fc36ea5

View file

@ -23,18 +23,11 @@ export default function MobileMenu() {
const setIsOpen = useMobileMenuState((state) => state.setIsOpen)
const handleClick = () => {
if (isOpen) {
document.body.style.overflow = 'auto'
setIsOpen(false)
} else {
document.body.style.overflow = 'hidden'
setIsOpen(true)
}
setIsOpen(!isOpen)
}
const handleSubmit = () => {
setIsOpen(false)
document.body.style.overflow = 'auto'
}
return (