diff --git a/src/App.tsx b/src/App.tsx index 1293ebf..8a233e6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,6 +15,7 @@ import ToastViewport from "./components/toasts/ToastViewport"; import Navbar from "./components/Navbar"; import GameplayNavbar from "./components/GameplayNavbar"; import { routeConfig } from "./config/routes"; +import NotFound from "./pages/NotFound"; const Home = () => ( <> @@ -42,7 +43,7 @@ function App() { Loading...}> } /> - {routeConfig + {routeConfig .filter((route) => route.isLazy && route.component) .map((route) => ( } /> - ))} + ))} - 404 — Page Not Found - - } + element={} /> diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index 5141796..38b6e63 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -3,11 +3,11 @@ import { Link } from "react-router-dom"; export default function NotFound() { return (
-

404

+

404

Page not found

Go Home