diff --git a/01-frontend/src/App.tsx b/01-frontend/src/App.tsx
index 90da10d..1408b3d 100644
--- a/01-frontend/src/App.tsx
+++ b/01-frontend/src/App.tsx
@@ -11,6 +11,8 @@ import Category from './pages/Category';
import { BasketProvider } from './helper/BasketProvider';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import { green } from '@mui/material/colors';
+import Orders from './pages/Orders';
+import Account from './pages/Account';
export default function App() {
@@ -34,6 +36,8 @@ export default function App() {
} />
} />
} />
+ } />
+ } />
diff --git a/01-frontend/src/helper/NavBar.tsx b/01-frontend/src/helper/NavBar.tsx
index 5a3f376..f204eb3 100644
--- a/01-frontend/src/helper/NavBar.tsx
+++ b/01-frontend/src/helper/NavBar.tsx
@@ -78,8 +78,9 @@ export default function NavBar() {
navigate(`/${link.toLowerCase()}`);
};
- const handleCloseUserMenu = () => {
+ const handleCloseUserMenu = (link: string) => {
setAnchorElUser(null);
+ navigate(`/${link.toLowerCase()}`);
};
@@ -203,7 +204,7 @@ export default function NavBar() {
onClose={handleCloseUserMenu}
>
{settings.map((setting) => (
-