diff --git a/webapp/src/App.js b/webapp/src/App.js index cca8a24..d7cc372 100644 --- a/webapp/src/App.js +++ b/webapp/src/App.js @@ -1,54 +1,30 @@ - import React, { useState } from 'react'; -import Container from '@mui/material/Container'; +import React from 'react'; +import Navbar from './components/navbar/NavBar'; +import AddUser from './components/adduser/AddUser'; +import Login from './components/login/Login'; +import { AuthProvider } from './components/authcontext'; +import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; +import StartButton from './components/startbutton/StartButton'; import Game from './components/game/Game'; -function App() { - const [showLogin, setShowLogin] = useState(true); - - const handleToggleView = () => { - setShowLogin(!showLogin); - }; +import Home from './components/home/Home'; +import Footer from './components/footer/Footer'; +const App = () => { return ( - - - - - - {/*showLogin ? : - - {showLogin ? ( - - Don't have an account? Register here. - - ) : ( - - Already have an account? Login here. - - )} - - */} - - + + + + + } /> + } /> + } /> + } /> + } /> + +