Game id changed
This commit is contained in:
Marces Zastrow
2024-12-18 11:35:53 +01:00
parent 0c4af623bc
commit 6c6feb0185
4 changed files with 79 additions and 2 deletions
+5
View File
@@ -5,6 +5,7 @@ import Header from './components/header'; // Make sure the import path is correc
import Home from './pages/home';
import Login from './pages/login';
import Register from './pages/register';
import JoinGame from './pages/joinGame';
function App() {
const [isLoggedIn, setIsLoggedIn] = useState(false);
@@ -39,6 +40,10 @@ function App() {
showPopup('User registered successfully!');
}} />}
/>
<Route
path="joinGame"
element={<JoinGame isLoggedIn={isLoggedIn} />}
/>
</Routes>
</div>
</Router>