diff --git a/src/App.js b/src/App.js
index f16b320..acc596c 100644
--- a/src/App.js
+++ b/src/App.js
@@ -2,46 +2,28 @@ import "./assets/css/App.scss";
import Home from "./pages/Home.jsx";
import Single from "./pages/Single.jsx";
import Profile from "./pages/Profile.jsx";
+import Country from "./pages/Country.jsx";
import Results from "./pages/Results.jsx";
import Test from "./pages/Test.jsx";
-
+import { v4 as uuidv4 } from "uuid";
import Game from "./pages/Game.jsx";
-import { createBrowserRouter, RouterProvider } from "react-router-dom";
-
-const router = createBrowserRouter([
- {
- path: "/",
- element: ,
- },
- {
- path: "/select-profile",
- element: ,
- },
- {
- path: "/play",
- element: ,
- },
- {
- path: "/results",
- element: ,
- },
- {
- path: "/article/:id",
- element: ,
- },
- {
- path: "/test",
- element: ,
- },
-]);
+import { useLocation, Routes, Route } from "react-router-dom";
+import { AnimatePresence } from "framer-motion";
function App() {
+ const location = useLocation();
return (
- <>
- {/* */}
- ;
- >
+
+
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+
+
);
}
diff --git a/src/index.js b/src/index.js
index 421447e..775fa6f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -3,12 +3,19 @@ import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { UserContextProvider } from "./context/UserContext.js";
+import { BrowserRouter, Route, Routes, useLocation } from "react-router-dom";
+import { AnimatePresence } from "framer-motion";
+import Home from "./pages/Home.jsx";
+import Profile from "./pages/Profile.jsx";
const root = ReactDOM.createRoot(document.getElementById("root"));
+
root.render(
-
+
+
+
);