feat: add 404 catch-all route and NotFound page
This commit is contained in:
parent
4fabde57bd
commit
4de2c40482
3 changed files with 55 additions and 6 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue