Skip to content

Commit

Permalink
fixes #1234
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaagrawal7508 committed Oct 9, 2024
1 parent 0eb5833 commit c54721d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import VirtualCoffeeFull from '@/svg/VirtualCoffeeFull';
export default function Nav() {
const [isOpen, setIsOpen] = useState(false);

const handleLinkClick = () => {
setIsOpen(false);
};

return (
<nav className="navbar navbar-expand-lg navbar-dark fixed-top w-100">
<Link className="navbar-brand" href="/" aria-label="Virtual Coffee">
Expand All @@ -32,29 +36,30 @@ export default function Nav() {
>
<ul className="navbar-nav">
<li className="nav-item">
<Link className="nav-link" href="/about">
<Link className="nav-link" href="/about" onClick={handleLinkClick}>
About
</Link>
</li>
<li className="nav-item">
<Link className="nav-link" href="/events">
<Link className="nav-link" href="/events" onClick={handleLinkClick}>
Events
</Link>
</li>
<li className="nav-item">
<Link className="nav-link" href="/podcast">
<Link className="nav-link" href="/podcast" onClick={handleLinkClick}>
Podcast
</Link>
</li>
<li className="nav-item">
<Link className="nav-link" href="/resources">
<Link className="nav-link" href="/resources" onClick={handleLinkClick}>
Resources
</Link>
</li>
<li className="nav-item">
<Link
className="nav-link"
href="/resources/virtual-coffee-handbook/join-virtual-coffee"
onClick={handleLinkClick}
>
Join
</Link>
Expand Down

0 comments on commit c54721d

Please sign in to comment.