Skip to content

Commit

Permalink
fix: Wrongly propagated props on MenuItemContainer (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Jan 10, 2025
1 parent 365ad79 commit f79f5b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Navbar/SubMenu/SubMenu.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ const SubMenuContainer = styled(Box)((props) => {
}
})

const MenuItemContainer = styled(Box)<MenuItemContainerProps>((props) => {
const MenuItemContainer = styled(Box, {
shouldForwardProp: (prop) =>
!["active", "section", "isMobile"].includes(prop),
})<MenuItemContainerProps>((props) => {
const { active, section, theme } = props
let modifiedStyles
let mobileModifiedStyles
Expand Down

0 comments on commit f79f5b3

Please sign in to comment.