feat: add 404 catch-all route and NotFound page

This commit is contained in:
lila 2026-04-24 18:28:22 +02:00
parent 4fabde57bd
commit 4de2c40482
3 changed files with 55 additions and 6 deletions

View file

@ -1,6 +1,7 @@
import { createRootRoute, Outlet } from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
import Navbar from "../components/navbar/NavBar";
import NotFound from "../components/NotFound";
const RootLayout = () => {
return (
@ -14,4 +15,7 @@ const RootLayout = () => {
);
};
export const Route = createRootRoute({ component: RootLayout });
export const Route = createRootRoute({
component: RootLayout,
notFoundComponent: NotFound,
});