Skip to content

Commit 8571fb3

Browse files
committed
make it so that(on mobile) the admision button close the hamburger menu(if open) when pressed
1 parent f0537a1 commit 8571fb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/layout/Navbar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function Navbar() {
6161
<div className="flex items-center gap-2">
6262
<Link
6363
href="/admissions"
64+
onClick={() => setIsOpen(false)}
6465
className="cta-button !px-3 !py-1.5 !text-xs sm:!px-5 sm:!py-2 sm:!text-sm whitespace-nowrap hidden sm:inline-flex items-center gap-1.5 sm:gap-2"
6566
>
6667
<span className="cta-glow"></span>

0 commit comments

Comments
 (0)