|
@@ -27,32 +27,6 @@ import ExpandLess from '@mui/icons-material/ExpandLess';
|
27
|
27
|
import ExpandMore from '@mui/icons-material/ExpandMore';
|
28
|
28
|
import { useNavigate, useResolvedPath, useMatch } from 'react-router-dom'
|
29
|
29
|
|
30
|
|
-function SubMenuItem (props) {
|
31
|
|
-
|
32
|
|
- let navigate = useNavigate()
|
33
|
|
- let resolved = useResolvedPath(props.route);
|
34
|
|
- let match = useMatch({ path: resolved.pathname, end: true });
|
35
|
|
-
|
36
|
|
- return(
|
37
|
|
- <ListItem
|
38
|
|
- sx={{ pl: 9, color : '#25344f'}}
|
39
|
|
- selected={match}
|
40
|
|
- onClick={() => navigate(props.route)}
|
41
|
|
- button
|
42
|
|
- >
|
43
|
|
- <ListItemText
|
44
|
|
- sx={{
|
45
|
|
- fontSize: 12,
|
46
|
|
- ' .css-10hburv-MuiTypography-root' : {
|
47
|
|
- fontSize : '.875rem'
|
48
|
|
- },
|
49
|
|
- }}
|
50
|
|
- primary={props.title}
|
51
|
|
- />
|
52
|
|
- </ListItem>
|
53
|
|
- )
|
54
|
|
-}
|
55
|
|
-
|
56
|
30
|
function NavItem (props) {
|
57
|
31
|
|
58
|
32
|
let navigate = useNavigate()
|
|
@@ -85,7 +59,6 @@ function NavItem (props) {
|
85
|
59
|
|
86
|
60
|
export const MainListItems = (props) => {
|
87
|
61
|
|
88
|
|
-
|
89
|
62
|
const [open, setOpen] = React.useState(false);
|
90
|
63
|
|
91
|
64
|
const showPruebas = () => {
|