Skip to content

Commit

Permalink
Añadido tooltip a NavBarGame.
Browse files Browse the repository at this point in the history
  • Loading branch information
UO288559 committed Apr 16, 2024
1 parent ab209bb commit f224fab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/src/components/fragments/NavigationBar_Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useNavigate, useLocation } from 'react-router-dom';
import { AppBar, Toolbar, IconButton, Menu, MenuItem, Grid, Button, Hidden} from '@mui/material';
import MenuIcon from '@mui/icons-material/Menu';
import axios from 'axios';
import Tooltip from '@mui/material/Tooltip';

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
const NavigationBar_Game = () => {
Expand Down Expand Up @@ -63,9 +64,11 @@ const NavigationBar_Game = () => {
</Menu>
<Hidden smDown>
<Grid container justifyContent="flex-start">
<Tooltip title="Inicio">
<Button variant="contained" color="inherit" style={{ background: '#9A77B0', border: 'none', padding: 0, marginRight: '10px' }} onClick={showHome}>
<img src={require('../images/home.png')} style={{ width: '50px', height: '50px' }} alt="Imagen home"/>
</Button>
</Tooltip>
</Grid>
</Hidden>
</Toolbar>
Expand Down

0 comments on commit f224fab

Please sign in to comment.