diff --git a/src/components/Global/Navbar.jsx b/src/components/Global/Navbar.jsx index c2ec2fb..7d90034 100644 --- a/src/components/Global/Navbar.jsx +++ b/src/components/Global/Navbar.jsx @@ -82,6 +82,7 @@ const Navbar = () => { { href: '/Hackathon', label: 'Hackathons' }, { href: '/Events', label: 'Events' } ]} + closeDropdown={closeAll} /> @@ -100,6 +101,7 @@ const Navbar = () => { { href: '/Resources', label: 'Resources' }, { href: '/localdev', label: 'Connect To Local Dev' } ]} + closeDropdown={closeAll} /> @@ -115,6 +117,7 @@ const Navbar = () => { { href: '/careers', label: 'Careers' }, { href: '/Stories-Achievements', label: 'Stories & Achievements' } ]} + closeDropdown={closeAll} /> @@ -240,7 +243,7 @@ const Navbar = () => { }; // Desktop Navigation Item Component -const NavItem = ({ type, label, isOpen, onToggle, items }) => { +const NavItem = ({ type, label, isOpen, onToggle, items, closeDropdown}) => { if (type === 'dropdown') { return (