mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 22:02:39 +02:00
fix(navbar): remove key prop causing unnecessary remount in mobile navbar
This commit is contained in:
parent
c2bd2bc935
commit
fb20b0444f
1 changed files with 0 additions and 1 deletions
|
|
@ -143,7 +143,6 @@ const MobileNav = ({ navItems, isScrolled, scrolledBgClassName }: any) => {
|
||||||
<motion.div
|
<motion.div
|
||||||
ref={navRef}
|
ref={navRef}
|
||||||
animate={{ borderRadius: open ? "4px" : "2rem" }}
|
animate={{ borderRadius: open ? "4px" : "2rem" }}
|
||||||
key={String(open)}
|
|
||||||
className={cn(
|
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",
|
"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
|
isScrolled
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue