diff --git a/src/App.js b/src/App.js index 3b8949ed..b8632290 100644 --- a/src/App.js +++ b/src/App.js @@ -8,7 +8,7 @@ import ForgotPW from "./Pages/forgot-pw.jsx"; import Menu from "./Pages/Menu.jsx"; import Cart from "./Pages/Cart.jsx"; import Orders from "./Pages/Order.jsx"; -import About from "./Pages/About.jsx"; +import About from "./Pages/About.jsx"; import { AuthContext } from "./context/AuthContext.jsx"; import ResetPW from "./Pages/reset-pw.jsx"; @@ -17,8 +17,8 @@ export default function App() { return ( - } /> - } /> + {/* } /> */} + } /> } /> } /> } /> @@ -33,7 +33,7 @@ export default function App() { Not Found} /> > ) : ( - } /> + } /> )} ); diff --git a/src/Component/N-SearchBar.js b/src/Component/N-SearchBar.js index b8fc282e..aa14281b 100644 --- a/src/Component/N-SearchBar.js +++ b/src/Component/N-SearchBar.js @@ -22,7 +22,7 @@ export default function NavBar({ search = "", onSearchChange }) { try { openNotification("success", "Logged out successfully"); localStorage.clear(); - navigate("/home"); + navigate("/"); } catch (error) { console.error("Logout error:", error); openNotification("warning", "Logout failed. Please try again."); @@ -34,7 +34,7 @@ export default function NavBar({ search = "", onSearchChange }) { {/* Logo -> Home */} - + bR @@ -47,7 +47,7 @@ export default function NavBar({ search = "", onSearchChange }) { {/* Center links */} - + 1 ? "s" : ""}` : "" - }`} + aria-label={`Cart${count ? `, ${count} item${count > 1 ? "s" : ""}` : "" + }`} > {/* Logo */} - + bR @@ -43,7 +43,7 @@ export default function NavBar() { {/* Links with icons */} `${base} ${isActive ? active : inactive}`} > diff --git a/src/Pages/About.jsx b/src/Pages/About.jsx index 3800d405..3bc44039 100644 --- a/src/Pages/About.jsx +++ b/src/Pages/About.jsx @@ -106,7 +106,7 @@ export default function About() { - + Home diff --git a/src/Pages/Register.jsx b/src/Pages/Register.jsx index e780a21c..a82c69fb 100644 --- a/src/Pages/Register.jsx +++ b/src/Pages/Register.jsx @@ -93,7 +93,7 @@ export default function Register() { navigate("/home")} + onClick={() => navigate("/")} > bR diff --git a/src/Pages/SignIn.jsx b/src/Pages/SignIn.jsx index 5dfd7108..d5ec61f4 100644 --- a/src/Pages/SignIn.jsx +++ b/src/Pages/SignIn.jsx @@ -72,7 +72,7 @@ export default function SignIn() { navigate("/home")} + onClick={() => navigate("/")} > bR