diff --git a/src/components/Navbar/SubMenu/SubMenu.styled.ts b/src/components/Navbar/SubMenu/SubMenu.styled.ts index 2d39271..e4a1d7d 100644 --- a/src/components/Navbar/SubMenu/SubMenu.styled.ts +++ b/src/components/Navbar/SubMenu/SubMenu.styled.ts @@ -24,7 +24,10 @@ const SubMenuContainer = styled(Box)((props) => { } }) -const MenuItemContainer = styled(Box)((props) => { +const MenuItemContainer = styled(Box, { + shouldForwardProp: (prop) => + !["active", "section", "isMobile"].includes(prop), +})((props) => { const { active, section, theme } = props let modifiedStyles let mobileModifiedStyles