From 6a58bc6b34c9eb4a8c05c4425baa69549785bcab Mon Sep 17 00:00:00 2001 From: edwin6666 Date: Tue, 17 Oct 2023 22:42:37 -0400 Subject: [PATCH 1/3] Fix(navbar): fix link home appeared where it shouldn't --- src/components/Navbar/Navbar.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index a6524d6..feaf65a 100644 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -14,7 +14,7 @@ const Navbar = () => { const isAdminPage = location.pathname === "/admin"; const userListPage = location.pathname === "/users"; const isContactPage = location.pathname === "/contact"; - + const { setAuth } = useAuth(); const handleLogout = () => { @@ -32,7 +32,7 @@ const Navbar = () => { if (isLoginPage || isSignupPage) { return null; } - + const hideHomeLink = location.pathname.startsWith("/posts/"); return (