Skip to content

Commit

Permalink
modificacion a denominacion Home
Browse files Browse the repository at this point in the history
  • Loading branch information
holmess23 committed Feb 27, 2024
1 parent e0b2616 commit 113d185
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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 Main from "./components/Main";
import Home from "./components/Home";

function App() {
const [showLogin, setShowLogin] = useState(true);
Expand All @@ -26,7 +26,7 @@ function App() {
return (

<Container component="main" maxWidth="xs">
{login ? <Main username={user}/> : (
{login ? <Home username={user}/> : (
<>
<CssBaseline />
<Typography component="h1" variant="h5" align="center" sx={{ marginTop: 2 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import NavBar from "./NavBar";
import GamesPanel from "./GamesPanel";
import Container from "@mui/material/Container";

const Main = (props) => {
const Home = (props) => {
// userData contiene los datos del usuario que fueron pasados como props desde el componente Login

return (
<Container component="main" maxWidth="xs">
<Container component="main" maxWidth={false} style={{ height: '100vh' }}>
<NavBar/>
<GamesPanel/>
</Container>
);
};

export default Main;
export default Home;
2 changes: 1 addition & 1 deletion webapp/src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { useState } from 'react';
import axios from 'axios';
import { Container, Typography, TextField, Button, Snackbar } from '@mui/material';
import Main from "./Main";
import Home from "./Home";

const Login = ({sendLogin, sendUsername}) => {
const [username, setUsername] = useState('');
Expand Down

0 comments on commit 113d185

Please sign in to comment.