diff --git a/01-frontend/src/App.tsx b/01-frontend/src/App.tsx
index fcbce92..f7613f0 100644
--- a/01-frontend/src/App.tsx
+++ b/01-frontend/src/App.tsx
@@ -19,7 +19,7 @@ export default function App() {
} />
} />
} />
- } />
+ } />
diff --git a/01-frontend/src/helper/NavBar.tsx b/01-frontend/src/helper/NavBar.tsx
index 7c54686..27838da 100644
--- a/01-frontend/src/helper/NavBar.tsx
+++ b/01-frontend/src/helper/NavBar.tsx
@@ -16,8 +16,8 @@ import { alpha, InputBase, styled } from '@mui/material';
import SearchIcon from '@mui/icons-material/Search';
import { useNavigate } from 'react-router-dom';
-const pages = ['Products', 'Pricing', 'Contact'];
-const settings = ['Profile', 'Account', 'Dashboard', 'Logout'];
+const pages = ['Categories', 'Checkout', 'Contact'];
+const settings = ['Account', 'Orders', 'Logout'];
const Search = styled('div')(({ theme }) => ({
position: 'relative',
@@ -73,18 +73,15 @@ export default function NavBar() {
setAnchorElUser(event.currentTarget);
};
- const handleCloseNavMenu = () => {
+ const handleCloseNavMenu = (link: string) => {
setAnchorElNav(null);
+ navigate(`/${link.toLowerCase()}`);
};
const handleCloseUserMenu = () => {
setAnchorElUser(null);
};
- const handleCheckout = () => {
- navigate('/payment');
- }
-
return (
@@ -147,7 +144,7 @@ export default function NavBar() {
sx={{ display: { xs: 'block', md: 'none' } }}
>
{pages.map((page) => (
-