From d1dd0c403c32235efd4130c3bef5a4579a80303b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Carri=C3=B3n?= Date: Tue, 26 May 2026 19:32:19 -0300 Subject: [PATCH] feat: add 404 page --- src/App.tsx | 11 ++++------- src/pages/NotFound.tsx | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) 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