reordering routes
This commit is contained in:
parent
0555e3d5c4
commit
ebc3036cf8
12
src/App.js
12
src/App.js
|
|
@ -1,17 +1,13 @@
|
|||
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 Game from "./pages/Game.jsx";
|
||||
|
||||
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
||||
|
||||
import { registerUmamiScript } from "@parcellab/react-use-umami";
|
||||
import { useEffect } from "react";
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
|
|
@ -21,13 +17,9 @@ const router = createBrowserRouter([
|
|||
path: "/select-profile",
|
||||
element: <Profile />,
|
||||
},
|
||||
{
|
||||
path: "/test",
|
||||
element: <Test />,
|
||||
},
|
||||
{
|
||||
path: "/play",
|
||||
element: <SearchAndFind />,
|
||||
element: <Game />,
|
||||
},
|
||||
{
|
||||
path: "/results",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user