|
@@ -27,21 +27,20 @@ function DashboardContent() {
|
|
|
|
|
|
|
|
const [open, setOpen] = React.useState(false);
|
|
const [open, setOpen] = React.useState(false);
|
|
|
const isMovil = Size('(min-width:770px)');
|
|
const isMovil = Size('(min-width:770px)');
|
|
|
-
|
|
|
|
|
- const toggleDrawer = () => setOpen(!open);
|
|
|
|
|
const auth = useAuth();
|
|
const auth = useAuth();
|
|
|
const navigate = useNavigate()
|
|
const navigate = useNavigate()
|
|
|
|
|
|
|
|
|
|
+ const toggleDrawer = () => setOpen(!open);
|
|
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
|
const open_profile = Boolean(anchorEl);
|
|
const open_profile = Boolean(anchorEl);
|
|
|
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(false);
|
|
const [anchorElMovil, setAnchorElMov] = React.useState(false);
|
|
|
-
|
|
|
|
|
- const MenuResponsive = () => {
|
|
|
|
|
|
|
+ const MenuResponsive = () => {
|
|
|
|
|
+ console.log(anchorElMovil)
|
|
|
setAnchorElMov(!anchorElMovil);
|
|
setAnchorElMov(!anchorElMovil);
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
const CerrarSession = () => {
|
|
const CerrarSession = () => {
|
|
|
console.log('cerrando session')
|
|
console.log('cerrando session')
|
|
@@ -51,11 +50,16 @@ function DashboardContent() {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<ThemeProvider theme={mdTheme}>
|
|
<ThemeProvider theme={mdTheme}>
|
|
|
- <MenuMovil anchor={anchorElMovil}/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <MenuMovil
|
|
|
|
|
+ anchor={anchorElMovil}
|
|
|
|
|
+ control={setAnchorElMov} />
|
|
|
|
|
+
|
|
|
<Box sx={{ display: 'flex' }}>
|
|
<Box sx={{ display: 'flex' }}>
|
|
|
<CssBaseline/>
|
|
<CssBaseline/>
|
|
|
<AppBar style={{ backgroundColor : '#fff', boxShadow : 'None' }} position="absolute" open={ !isMovil ? open : false}>
|
|
<AppBar style={{ backgroundColor : '#fff', boxShadow : 'None' }} position="absolute" open={ !isMovil ? open : false}>
|
|
|
<Toolbar sx={{ pr: '24px' , borderBottom : "1px solid #ec5e69"}} >
|
|
<Toolbar sx={{ pr: '24px' , borderBottom : "1px solid #ec5e69"}} >
|
|
|
|
|
+
|
|
|
{/* boton para activar navegacion */}
|
|
{/* boton para activar navegacion */}
|
|
|
<IconButton
|
|
<IconButton
|
|
|
edge="start"
|
|
edge="start"
|
|
@@ -69,13 +73,16 @@ function DashboardContent() {
|
|
|
color: "#fff"
|
|
color: "#fff"
|
|
|
}}/>
|
|
}}/>
|
|
|
</IconButton>
|
|
</IconButton>
|
|
|
|
|
+
|
|
|
<Typography component="h1" variant="h6" color="inherit" noWrap sx={{ flexGrow: 1 }} >
|
|
<Typography component="h1" variant="h6" color="inherit" noWrap sx={{ flexGrow: 1 }} >
|
|
|
{
|
|
{
|
|
|
!isMovil && open ? (
|
|
!isMovil && open ? (
|
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
|
|
|
+
|
|
|
<IconButton onClick={toggleDrawer}>
|
|
<IconButton onClick={toggleDrawer}>
|
|
|
<MenuIcon />
|
|
<MenuIcon />
|
|
|
</IconButton>
|
|
</IconButton>
|
|
|
|
|
+
|
|
|
<IconButton onClick={ (event) => event.target.requestFullscreen() }>
|
|
<IconButton onClick={ (event) => event.target.requestFullscreen() }>
|
|
|
<FullscreenIcon style={{ paddinLeft : 15 }}/>
|
|
<FullscreenIcon style={{ paddinLeft : 15 }}/>
|
|
|
</IconButton>
|
|
</IconButton>
|