adding App routes
This commit is contained in:
parent
373c3fa3f9
commit
4115e2b343
14
src/App.js
14
src/App.js
|
|
@ -2,15 +2,25 @@ import "./assets/css/App.scss";
|
|||
import Home from "./pages/Home.jsx";
|
||||
import Test from "./pages/Test.jsx";
|
||||
import Single from "./pages/Single.jsx";
|
||||
import Profile from "./pages/Profile.jsx";
|
||||
import Results from "./pages/Results.jsx";
|
||||
|
||||
import SearchAndFind from "./screens/SearchAndFind.jsx";
|
||||
|
||||
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
||||
|
||||
import { registerUmamiScript } from "@parcellab/react-use-umami";
|
||||
import { useEffect } from "react";
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <Home />,
|
||||
},
|
||||
{
|
||||
path: "/select-profile",
|
||||
element: <Profile />,
|
||||
},
|
||||
{
|
||||
path: "/test",
|
||||
element: <Test />,
|
||||
|
|
@ -19,6 +29,10 @@ const router = createBrowserRouter([
|
|||
path: "/play",
|
||||
element: <SearchAndFind />,
|
||||
},
|
||||
{
|
||||
path: "/results",
|
||||
element: <Results />,
|
||||
},
|
||||
{
|
||||
path: "/article/:id",
|
||||
element: <Single />,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user