Added Game page
This commit is contained in:
Marces Zastrow
2025-01-08 13:35:00 +01:00
parent 2091ce9e0f
commit a252350323
4 changed files with 130 additions and 7 deletions
+5
View File
@@ -9,6 +9,7 @@ import Register from './pages/register';
import JoinGame from './pages/joinGame';
import StartGame from './pages/startGame';
import Profile from './pages/profile';
import Games from './pages/games.jsx';
import { UserProvider } from './context/UserContext.jsx';
function App() {
@@ -59,6 +60,10 @@ function App() {
path="/profile"
element={<Profile isLoggedIn={isLoggedIn} />}
/>
<Route
path='/games/:gameId'
element={<Games isLoggedIn={isLoggedIn} />}
/>
</Routes>
</div>
</Router>