|
@@ -1,24 +1,23 @@
|
1
|
1
|
import * as React from 'react';
|
2
|
2
|
|
3
|
|
-import AppBar from '@mui/material/AppBar';
|
4
|
|
-import Box from '@mui/material/Box';
|
5
|
|
-import CssBaseline from '@mui/material/CssBaseline';
|
6
|
|
-import Divider from '@mui/material/Divider';
|
7
|
|
-import Drawer from '@mui/material/Drawer';
|
8
|
|
-import IconButton from '@mui/material/IconButton';
|
9
|
|
-import InboxIcon from '@mui/icons-material/MoveToInbox';
|
10
|
|
-import List from '@mui/material/List';
|
11
|
|
-import ListItem from '@mui/material/ListItem';
|
12
|
|
-import ListItemButton from '@mui/material/ListItemButton';
|
13
|
|
-import ListItemIcon from '@mui/material/ListItemIcon';
|
14
|
|
-import ListItemText from '@mui/material/ListItemText';
|
15
|
|
-import MailIcon from '@mui/icons-material/Mail';
|
16
|
|
-import MenuIcon from '@mui/icons-material/Menu';
|
17
|
|
-import Button from '@mui/material/Button';
|
18
|
|
-import Toolbar from '@mui/material/Toolbar';
|
19
|
|
-import Typography from '@mui/material/Typography';
|
|
3
|
+import {
|
|
4
|
+ Mail as MailIcon, Menu as MenuIcon,
|
|
5
|
+ MoveToInbox as InboxIcon
|
|
6
|
+} from '@mui/icons-material'
|
|
7
|
+
|
|
8
|
+import { Outlet, useNavigate } from "react-router-dom";
|
|
9
|
+
|
|
10
|
+import {
|
|
11
|
+ AppBar, Box, CssBaseline, Divider, Drawer,
|
|
12
|
+ IconButton,List, ListItem, ListItemButton, ListItemIcon, ListItemText,
|
|
13
|
+ Button,Toolbar, Typography, Container
|
|
14
|
+} from '@mui/material'
|
|
15
|
+
|
|
16
|
+import Footer from "../Components/Footer.js";
|
|
17
|
+
|
20
|
18
|
import useAuth from '../Auth/useAuth';
|
21
|
19
|
|
|
20
|
+
|
22
|
21
|
const drawerWidth = 240;
|
23
|
22
|
|
24
|
23
|
export function User(props) {
|
|
@@ -125,15 +124,15 @@ export function User(props) {
|
125
|
124
|
</Box>
|
126
|
125
|
<Box
|
127
|
126
|
component="main"
|
128
|
|
- sx={{ flexGrow: 1, p: 3, width: { sm: `calc(100% - ${drawerWidth}px)` } }}
|
129
|
|
- >
|
130
|
|
- <Toolbar />
|
131
|
|
- <Typography paragraph>
|
132
|
|
- Bienvenido User
|
133
|
|
- </Typography>
|
134
|
|
- <div>
|
135
|
|
- <Button onClick={auth.logout} variant="contained">Cerrar Session</Button>
|
136
|
|
- </div>
|
|
127
|
+ sx={{ flexGrow: 1, p: 3, width: { sm: `calc(100% - ${drawerWidth}px)` } }} >
|
|
128
|
+
|
|
129
|
+ <Container maxWidth="lg" sx={{ mt: 2, mb: 2 }}>
|
|
130
|
+ <Outlet />
|
|
131
|
+ <Footer />
|
|
132
|
+ </Container>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
137
|
136
|
</Box>
|
138
|
137
|
</Box>
|
139
|
138
|
);
|