Skip to content

Commit 1bddfc3

Browse files
committed
chore: remove unused AnimatePresence
1 parent 0b3dd4d commit 1bddfc3

File tree

1 file changed

+26
-29
lines changed

1 file changed

+26
-29
lines changed

src/components/Nav/Menu/index.tsx

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -66,35 +66,32 @@ const Menu = ({ sections, ...props }: NavMenuProps) => {
6666
</Text>
6767
</Button>
6868
</NavigationMenu.Trigger>
69-
<AnimatePresence>
70-
<NavigationMenu.Content asChild>
71-
{/**
72-
* This is the CONTAINER for all three menu levels
73-
* This renders inside the NavigationMenu.Viewport component
74-
*/}
75-
<Box
76-
as={motion.div}
77-
key={sectionKey + "-content"}
78-
variants={containerVariants}
79-
initial={false}
80-
animate={isOpen ? "open" : "closed"}
81-
position="absolute"
82-
top="19"
83-
insetInline="0"
84-
shadow="md"
85-
border="1px"
86-
borderColor={menuColors.stroke}
87-
bg={menuColors.lvl[1].background}
88-
>
89-
<SubMenu
90-
lvl={1}
91-
items={items}
92-
activeSection={activeSection}
93-
onClose={onClose}
94-
/>
95-
</Box>
96-
</NavigationMenu.Content>
97-
</AnimatePresence>
69+
<NavigationMenu.Content asChild>
70+
{/**
71+
* This is the CONTAINER for all three menu levels
72+
* This renders inside the NavigationMenu.Viewport component
73+
*/}
74+
<Box
75+
as={motion.div}
76+
variants={containerVariants}
77+
initial={false}
78+
animate={isOpen ? "open" : "closed"}
79+
position="absolute"
80+
top="19"
81+
insetInline="0"
82+
shadow="md"
83+
border="1px"
84+
borderColor={menuColors.stroke}
85+
bg={menuColors.lvl[1].background}
86+
>
87+
<SubMenu
88+
lvl={1}
89+
items={items}
90+
activeSection={activeSection}
91+
onClose={onClose}
92+
/>
93+
</Box>
94+
</NavigationMenu.Content>
9895
</NavigationMenu.Item>
9996
)
10097
})}

0 commit comments

Comments
 (0)