Skip to content

Commit

Permalink
fix: made changes accordingly to latest review by Sutu
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavalveera committed Feb 5, 2024
1 parent 5ea5f12 commit b36a60e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Navbar/NavbarLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export const NavbarLink: FC<NavbarLinkProps> = ({
onClick,
...props
}) => {
const { theme: rootTheme, isOpen, setIsOpen } = useNavbarContext();
const { theme: rootTheme, setIsOpen } = useNavbarContext();

const theme = mergeDeep(rootTheme.link, customTheme);

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

return (
Expand Down

0 comments on commit b36a60e

Please sign in to comment.