From f9fd8bc28bfa085aa0d2aa5d44b7577907da43f8 Mon Sep 17 00:00:00 2001 From: Yuhao <16722967+clementinelove@users.noreply.github.com> Date: Sun, 3 Nov 2024 21:21:19 +0000 Subject: [PATCH] Fix nav bar won't close issue on mobile --- src/components/Navbar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index b7e5808..aab5b6a 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -36,7 +36,7 @@ const NavbarLink = ( export const Navbar = (): JSX.Element => { return ( - + {({ open, close }) => ( <>
@@ -45,7 +45,7 @@ export const Navbar = (): JSX.Element => {
{/* Mobile Icon */} - + { close() }}> {
{navigationRoutes.map((item) => ( - + { close() }} /> ))}