1
0

Integrated all pages in the main.jsx

This commit is contained in:
Mathias Wagner 2023-11-18 18:18:15 +01:00
parent 8de0fa3e05
commit 0aa5d8cc0e
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -8,24 +8,19 @@ import Root from "@/common/layouts/Root";
import Home from "@/pages/Home"; import Home from "@/pages/Home";
import Imprint from "@/pages/Imprint"; import Imprint from "@/pages/Imprint";
import Privacy from "@/pages/Privacy"; import Privacy from "@/pages/Privacy";
import Create from "@/pages/Create";
import Join from "@/pages/Join";
const routes = createBrowserRouter([ const routes = createBrowserRouter([
{ {
path: "/", path: "/",
element: <Root/>, element: <Root/>,
children: [ children: [
{ {path: "/", element: <Home/>},
path: "/", {path: "/imprint", element: <Imprint/>},
element: <Home/>, {path: "/privacy", element: <Privacy/>},
}, {path: "/create", element: <Create/>},
{ {path: "/join", element: <Join/>},
path: "/imprint",
element: <Imprint/>,
},
{
path: "/privacy",
element: <Privacy/>
},
{ {
path: "*", path: "*",
element: <div style={{display: "flex", justifyContent: "center"}}>404 - Seite nicht gefunden</div>, element: <div style={{display: "flex", justifyContent: "center"}}>404 - Seite nicht gefunden</div>,