Skip to content

Commit

Permalink
fix: some beta.5 bugfixes (#5431)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Aug 27, 2021
1 parent f600d5a commit 7fba381
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ function DefaultNavbarItem({
...props
}: Props): JSX.Element {
const Comp = mobile ? DefaultNavbarItemMobile : DefaultNavbarItemDesktop;
return <Comp {...props} activeClassName={getInfimaActiveClassName(mobile)} />;
return (
<Comp
{...props}
activeClassName={
props.activeClassName ?? getInfimaActiveClassName(mobile)
}
/>
);
}

export default DefaultNavbarItem;

0 comments on commit 7fba381

Please sign in to comment.