From e9ea90b290469c40423a3e8e5b05a85571a9b3aa Mon Sep 17 00:00:00 2001 From: bidof Date: Fri, 8 Mar 2024 11:54:58 +0100 Subject: [PATCH] arreglar errores de importacion --- webapp/src/App.js | 6 ------ webapp/src/components/login/Login.js | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) 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