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 "./assets/css/App.scss";
|
||||||
import Home from "./pages/Home.jsx";
|
import Home from "./pages/Home.jsx";
|
||||||
import Test from "./pages/Test.jsx";
|
|
||||||
import Single from "./pages/Single.jsx";
|
import Single from "./pages/Single.jsx";
|
||||||
import Profile from "./pages/Profile.jsx";
|
import Profile from "./pages/Profile.jsx";
|
||||||
import Results from "./pages/Results.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 { createBrowserRouter, RouterProvider } from "react-router-dom";
|
||||||
|
|
||||||
import { registerUmamiScript } from "@parcellab/react-use-umami";
|
|
||||||
import { useEffect } from "react";
|
|
||||||
|
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
|
|
@ -21,13 +17,9 @@ const router = createBrowserRouter([
|
||||||
path: "/select-profile",
|
path: "/select-profile",
|
||||||
element: <Profile />,
|
element: <Profile />,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "/test",
|
|
||||||
element: <Test />,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "/play",
|
path: "/play",
|
||||||
element: <SearchAndFind />,
|
element: <Game />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/results",
|
path: "/results",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user