introducing welcome and rating
This commit is contained in:
parent
ae10772922
commit
109ece1aa8
|
|
@ -1,4 +1,5 @@
|
||||||
import "./assets/css/App.scss";
|
import "./assets/css/App.scss";
|
||||||
|
import Welcome from "./pages/Welcome.jsx";
|
||||||
import Home from "./pages/Home.jsx";
|
import Home from "./pages/Home.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";
|
||||||
|
|
@ -7,6 +8,7 @@ import Results from "./pages/Results.jsx";
|
||||||
import Test from "./pages/Test.jsx";
|
import Test from "./pages/Test.jsx";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import Game from "./pages/Game.jsx";
|
import Game from "./pages/Game.jsx";
|
||||||
|
import Rating from "./pages/Rating.jsx";
|
||||||
|
|
||||||
import { useLocation, Routes, Route } from "react-router-dom";
|
import { useLocation, Routes, Route } from "react-router-dom";
|
||||||
import { AnimatePresence } from "framer-motion";
|
import { AnimatePresence } from "framer-motion";
|
||||||
|
|
@ -16,11 +18,13 @@ function App() {
|
||||||
return (
|
return (
|
||||||
<AnimatePresence mode='wait'>
|
<AnimatePresence mode='wait'>
|
||||||
<Routes location={location} key={location.pathname}>
|
<Routes location={location} key={location.pathname}>
|
||||||
<Route path='/' element={<Home />} />
|
<Route path='/' element={<Welcome />} />
|
||||||
|
<Route path='/home' element={<Home />} />
|
||||||
<Route path='/select-profile' element={<Profile />} />
|
<Route path='/select-profile' element={<Profile />} />
|
||||||
<Route path='/select-country' element={<Country />} />
|
<Route path='/select-country' element={<Country />} />
|
||||||
<Route path='/play' element={<Game />} />
|
<Route path='/play' element={<Game />} />
|
||||||
<Route path='/results' element={<Results />} />
|
<Route path='/results' element={<Results />} />
|
||||||
|
<Route path='/rating' element={<Rating />} />
|
||||||
<Route path='/test' element={<Test />} />
|
<Route path='/test' element={<Test />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user