Skip to content

Commit

Permalink
Close dropdown on navbar click, excluding X button
Browse files Browse the repository at this point in the history
  • Loading branch information
s2sharpit committed Jun 29, 2023
1 parent 9fd8f1b commit 40a1d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function MainNav({ items }: MainNavProps) {
}, [handleClose, toggle]);

return (
<div ref={menuRef} className="flex min-w-full justify-between">
<div className="flex min-w-full justify-between">
{/* desktop width navbar */}
<div className="flex w-full justify-between">
{/* Brand Logo | home page link */}
Expand Down Expand Up @@ -133,7 +133,7 @@ export function MainNav({ items }: MainNavProps) {
</div>
</div>
{/* mobile hamburger menu */}
<div className="flex items-center md:hidden">
<div ref={menuRef} className="flex items-center md:hidden">
{/* humburger menu logo */}
<div
className={`${toggle ? "hidden" : "block"} md:hidden`}
Expand Down

0 comments on commit 40a1d2d

Please sign in to comment.