fix(navbar): remove key prop causing unnecessary remount in mobile navbar

This commit is contained in:
ArvinFarrelP 2026-04-03 21:51:08 +07:00
parent c2bd2bc935
commit fb20b0444f
No known key found for this signature in database
GPG key ID: 8C0AE50DA45372A9

View file

@ -143,7 +143,6 @@ const MobileNav = ({ navItems, isScrolled, scrolledBgClassName }: any) => {
<motion.div
ref={navRef}
animate={{ borderRadius: open ? "4px" : "2rem" }}
key={String(open)}
className={cn(
"relative mx-auto flex w-full max-w-[calc(100vw-2rem)] flex-col items-center justify-between px-4 py-2 lg:hidden transition-all duration-300",
isScrolled