Skip to content

Commit

Permalink
fix: renamed the userOnClick to onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavalveera authored and SutuSebastian committed Feb 5, 2024
1 parent a733e74 commit fd07e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar/NavbarLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const NavbarLink: FC<NavbarLinkProps> = ({
children,
className,
theme: customTheme = {},
onClick: userOnClick,
onClick,
...props
}) => {
const { theme: rootTheme, isOpen, setIsOpen } = useNavbarContext();
Expand All @@ -37,7 +37,7 @@ export const NavbarLink: FC<NavbarLinkProps> = ({

const handleClick = (event: MouseEvent<HTMLAnchorElement>) => {
setIsOpen(!isOpen);
userOnClick && userOnClick(event);
onClick && onClick(event);
};

return (
Expand Down

0 comments on commit fd07e7f

Please sign in to comment.