From 7479fdd885482aa4c7e9b066c444babca73d3f29 Mon Sep 17 00:00:00 2001 From: Nikhil Date: Mon, 22 Jul 2024 18:07:28 +0530 Subject: [PATCH] make menu items fully clickable --- client/src/components/Navbar.jsx | 79 ++++++++++++++++++++++++-------- 1 file changed, 61 insertions(+), 18 deletions(-) diff --git a/client/src/components/Navbar.jsx b/client/src/components/Navbar.jsx index 1cf8a25..aad9117 100644 --- a/client/src/components/Navbar.jsx +++ b/client/src/components/Navbar.jsx @@ -97,7 +97,6 @@ function MenuList({ user, onClick }) { const Navbar = () => { const user = useSelector((state) => state.user); const [isOpen, setIsOpen] = useState(false); - const handleCloseNavbar = () => { setIsOpen((prev) => !prev); }; @@ -110,28 +109,64 @@ const Navbar = () => { +
{!user?.token ? ( @@ -144,18 +179,26 @@ const Navbar = () => { )}
- + {/* MOBILE MENU */} -
+