diff --git a/01-frontend/src/App.tsx b/01-frontend/src/App.tsx index 84f1c29..8bbaa7c 100644 --- a/01-frontend/src/App.tsx +++ b/01-frontend/src/App.tsx @@ -7,6 +7,7 @@ import NoPage from './pages/NoPage'; import Product from './pages/Product'; import Payment from './pages/Payment'; import Contact from './pages/Contact'; +import Category from './pages/Category'; import { BasketProvider } from './helper/BasketProvider'; export default function App() { @@ -21,7 +22,7 @@ export default function App() { } /> } /> } /> - } /> + } /> } /> diff --git a/01-frontend/src/pages/Category.tsx b/01-frontend/src/pages/Category.tsx new file mode 100644 index 0000000..926e3a6 --- /dev/null +++ b/01-frontend/src/pages/Category.tsx @@ -0,0 +1,34 @@ +import { Box, Typography, Button } from "@mui/material"; +import { useNavigate } from "react-router-dom"; +import "./pages.css"; + +export default function Category() { + const navigate = useNavigate(); + + const handleGoHome = () => { + navigate("/"); + }; + + return ( + + + Category + + + Oops! The page you're looking for doesn't exist. + + + It seems you may have taken a wrong turn. Let's get you back on track. + + + + ); +} \ No newline at end of file