|
@@ -27,21 +27,20 @@ function DashboardContent() {
|
27
|
27
|
|
28
|
28
|
const [open, setOpen] = React.useState(false);
|
29
|
29
|
const isMovil = Size('(min-width:770px)');
|
30
|
|
-
|
31
|
|
- const toggleDrawer = () => setOpen(!open);
|
32
|
30
|
const auth = useAuth();
|
33
|
31
|
const navigate = useNavigate()
|
34
|
32
|
|
|
33
|
+ const toggleDrawer = () => setOpen(!open);
|
35
|
34
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
36
|
35
|
const open_profile = Boolean(anchorEl);
|
37
|
36
|
const handleClick = (event) => setAnchorEl(event.currentTarget);
|
38
|
37
|
const handleClose = () => setAnchorEl(null)
|
39
|
38
|
|
40
|
39
|
const [anchorElMovil, setAnchorElMov] = React.useState(false);
|
41
|
|
-
|
42
|
|
- const MenuResponsive = () => {
|
|
40
|
+ const MenuResponsive = () => {
|
|
41
|
+ console.log(anchorElMovil)
|
43
|
42
|
setAnchorElMov(!anchorElMovil);
|
44
|
|
- }
|
|
43
|
+ }
|
45
|
44
|
|
46
|
45
|
const CerrarSession = () => {
|
47
|
46
|
console.log('cerrando session')
|
|
@@ -51,11 +50,16 @@ function DashboardContent() {
|
51
|
50
|
|
52
|
51
|
return (
|
53
|
52
|
<ThemeProvider theme={mdTheme}>
|
54
|
|
- <MenuMovil anchor={anchorElMovil}/>
|
|
53
|
+
|
|
54
|
+ <MenuMovil
|
|
55
|
+ anchor={anchorElMovil}
|
|
56
|
+ control={setAnchorElMov} />
|
|
57
|
+
|
55
|
58
|
<Box sx={{ display: 'flex' }}>
|
56
|
59
|
<CssBaseline/>
|
57
|
60
|
<AppBar style={{ backgroundColor : '#fff', boxShadow : 'None' }} position="absolute" open={ !isMovil ? open : false}>
|
58
|
61
|
<Toolbar sx={{ pr: '24px' , borderBottom : "1px solid #ec5e69"}} >
|
|
62
|
+
|
59
|
63
|
{/* boton para activar navegacion */}
|
60
|
64
|
<IconButton
|
61
|
65
|
edge="start"
|
|
@@ -69,13 +73,16 @@ function DashboardContent() {
|
69
|
73
|
color: "#fff"
|
70
|
74
|
}}/>
|
71
|
75
|
</IconButton>
|
|
76
|
+
|
72
|
77
|
<Typography component="h1" variant="h6" color="inherit" noWrap sx={{ flexGrow: 1 }} >
|
73
|
78
|
{
|
74
|
79
|
!isMovil && open ? (
|
75
|
80
|
<React.Fragment>
|
|
81
|
+
|
76
|
82
|
<IconButton onClick={toggleDrawer}>
|
77
|
83
|
<MenuIcon />
|
78
|
84
|
</IconButton>
|
|
85
|
+
|
79
|
86
|
<IconButton onClick={ (event) => event.target.requestFullscreen() }>
|
80
|
87
|
<FullscreenIcon style={{ paddinLeft : 15 }}/>
|
81
|
88
|
</IconButton>
|