Replace setOpen(!open) toggles with functional setOpen(prev => !prev) across codebase

This commit is contained in:
JoeMakuta 2026-03-29 18:47:05 +02:00
parent 1705e881ec
commit 4e6251ea04
9 changed files with 9 additions and 9 deletions

View file

@ -162,7 +162,7 @@ const MobileNav = ({ navItems, isScrolled, scrolledBgClassName }: any) => {
</Link>
<button
type="button"
onClick={() => setOpen(!open)}
onClick={() => setOpen(prev => !prev)}
className="relative z-50 flex items-center justify-center p-2 -mr-2 rounded-lg hover:bg-gray-100 dark:hover:bg-neutral-800 transition-colors touch-manipulation"
aria-label={open ? "Close menu" : "Open menu"}
>