diff --git a/webapp/src/App.js b/webapp/src/App.js index 8668b33..cca8a24 100644 --- a/webapp/src/App.js +++ b/webapp/src/App.js @@ -1,12 +1,6 @@ import React, { useState } from 'react'; -import AddUser from './components/adduser/AddUser'; -import Login from './components/login/Login'; -import CssBaseline from '@mui/material/CssBaseline'; import Container from '@mui/material/Container'; -import Typography from '@mui/material/Typography'; -import Link from '@mui/material/Link'; import Game from './components/game/Game'; -import progressBar from './components/game/progressBar'; function App() { const [showLogin, setShowLogin] = useState(true); diff --git a/webapp/src/components/login/Login.js b/webapp/src/components/login/Login.js index b957839..a4127bc 100644 --- a/webapp/src/components/login/Login.js +++ b/webapp/src/components/login/Login.js @@ -2,8 +2,8 @@ import React, { useContext, useState ,useEffect} from 'react'; import axios from 'axios'; import { Container, Typography, TextField, Button, Snackbar } from '@mui/material'; -import Game from './game/Game.js'; -import { AuthContext } from './authcontext'; +import Game from '../game/Game'; +import { AuthContext } from '../authcontext'; const Login = () => { //hacer que el navbar guarde el contexo de si estas loggeado o no //ademas metes en localStorage que es como una cookie , el usuario para poder sacar sus datos en historial etc