|
@@ -18,7 +18,7 @@ import ProfilePicture from '../Images/man.png';
|
|
|
|
|
|
|
|
import useAuth from '../Auth/useAuth';
|
|
import useAuth from '../Auth/useAuth';
|
|
|
import { Outlet, useNavigate} from "react-router-dom";
|
|
import { Outlet, useNavigate} from "react-router-dom";
|
|
|
-import { MenuMovil } from '../Components/MenuMovil';
|
|
|
|
|
|
|
+// import { MenuMovil } from '../Components/MenuMovil';
|
|
|
import Footer from "../Components/Footer";
|
|
import Footer from "../Components/Footer";
|
|
|
|
|
|
|
|
|
|
|
|
@@ -104,15 +104,15 @@ function DashboardContent() {
|
|
|
const handleClick = (event) => setAnchorEl(event.currentTarget);
|
|
const handleClick = (event) => setAnchorEl(event.currentTarget);
|
|
|
const handleClose = () => setAnchorEl(null)
|
|
const handleClose = () => setAnchorEl(null)
|
|
|
|
|
|
|
|
- const [anchorElMovil, setAnchorElMov] = React.useState(null);
|
|
|
|
|
- const openMov = Boolean(anchorElMovil);
|
|
|
|
|
- const handleCloseMov = () => {
|
|
|
|
|
- setAnchorElMov(null);
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ // const [anchorElMovil, setAnchorElMov] = React.useState(null);
|
|
|
|
|
+ // const openMov = Boolean(anchorElMovil);
|
|
|
|
|
+ // const handleCloseMov = () => {
|
|
|
|
|
+ // setAnchorElMov(null);
|
|
|
|
|
+ // };
|
|
|
|
|
|
|
|
- const MenuResponsive = () => {
|
|
|
|
|
- setAnchorElMov(elRef.current);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // const MenuResponsive = () => {
|
|
|
|
|
+ // setAnchorElMov(elRef.current);
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
const CerrarSession = () => {
|
|
const CerrarSession = () => {
|
|
|
console.log('cerrando session')
|
|
console.log('cerrando session')
|
|
@@ -126,15 +126,15 @@ function DashboardContent() {
|
|
|
<CssBaseline />
|
|
<CssBaseline />
|
|
|
<AppBar style={{ backgroundColor : '#fff', boxShadow : 'None' }} position="absolute" open={useCheckMobileScreen() ? false : open}>
|
|
<AppBar style={{ backgroundColor : '#fff', boxShadow : 'None' }} position="absolute" open={useCheckMobileScreen() ? false : open}>
|
|
|
|
|
|
|
|
- <Toolbar sx={{ pr: '24px' , borderBottom : "1px solid #ec5e69"}} >
|
|
|
|
|
|
|
+ <Toolbar sx={{ pr: '24px', borderBottom : "1px solid #ec5e69"}} >
|
|
|
|
|
|
|
|
<div ref={elRef}>
|
|
<div ref={elRef}>
|
|
|
-
|
|
|
|
|
<IconButton
|
|
<IconButton
|
|
|
edge="start"
|
|
edge="start"
|
|
|
color="inherit"
|
|
color="inherit"
|
|
|
aria-label="open drawer"
|
|
aria-label="open drawer"
|
|
|
- onClick={ useCheckMobileScreen() ? MenuResponsive : toggleDrawer }
|
|
|
|
|
|
|
+ // onClick={ useCheckMobileScreen() ? MenuResponsive : toggleDrawer }
|
|
|
|
|
+ onClick={ toggleDrawer }
|
|
|
sx={{ marginRight: '36px', ...( !useCheckMobileScreen() && open && { display: 'none' }), }} >
|
|
sx={{ marginRight: '36px', ...( !useCheckMobileScreen() && open && { display: 'none' }), }} >
|
|
|
<MenuIcon style={{
|
|
<MenuIcon style={{
|
|
|
background: '#ec5e69',
|
|
background: '#ec5e69',
|
|
@@ -142,18 +142,6 @@ function DashboardContent() {
|
|
|
color: "#fff"
|
|
color: "#fff"
|
|
|
}}/>
|
|
}}/>
|
|
|
</IconButton>
|
|
</IconButton>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <MenuMovil
|
|
|
|
|
- id="basic-menu"
|
|
|
|
|
- anchorEl={anchorElMovil}
|
|
|
|
|
- open={openMov}
|
|
|
|
|
- onClose={handleCloseMov}
|
|
|
|
|
- out={CerrarSession}
|
|
|
|
|
- MenuListProps={{ 'aria-labelledby': 'basic-button', }}
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<Typography component="h1" variant="h6" color="inherit" noWrap sx={{ flexGrow: 1 }} >
|
|
<Typography component="h1" variant="h6" color="inherit" noWrap sx={{ flexGrow: 1 }} >
|