|
@@ -1,18 +1,16 @@
|
1
|
1
|
import * as React from 'react';
|
2
|
2
|
import { Nav } from 'react-bootstrap';
|
3
|
3
|
|
4
|
|
-import {
|
5
|
|
- Fingerprint, History, MiscellaneousServices ,
|
6
|
|
- ExpandLess, ExpandMore
|
7
|
|
-} from '@mui/icons-material/'
|
|
4
|
+import { Fingerprint, ExpandLess, ExpandMore } from '@mui/icons-material/'
|
8
|
5
|
|
9
|
6
|
import { useNavigate, useResolvedPath, useMatch } from 'react-router-dom'
|
10
|
7
|
import { Collapse,ListItem, List ,ListItemIcon,ListItemText,ListSubheader } from '@mui/material/'
|
11
|
8
|
|
12
|
9
|
import {
|
13
|
|
- MainItems, ExtraItems, PruebaItems
|
|
10
|
+ MainItems, ExtraItems, PruebaItems, TxTStyle
|
14
|
11
|
} from '../../Utils/MenuItems'
|
15
|
12
|
|
|
13
|
+
|
16
|
14
|
function NavItem (props) {
|
17
|
15
|
|
18
|
16
|
let navigate = useNavigate()
|
|
@@ -36,12 +34,7 @@ function NavItem (props) {
|
36
|
34
|
{icon && icon}
|
37
|
35
|
</ListItemIcon>
|
38
|
36
|
<ListItemText
|
39
|
|
- sx={{
|
40
|
|
- fontSize: 12,
|
41
|
|
- ' .css-10hburv-MuiTypography-root' : {
|
42
|
|
- fontSize : '.875rem'
|
43
|
|
- },
|
44
|
|
- }}
|
|
37
|
+ sx={TxTStyle}
|
45
|
38
|
primary={title}
|
46
|
39
|
/>
|
47
|
40
|
</ListItem>
|
|
@@ -62,35 +55,22 @@ export const MainListItems = (props) => {
|
62
|
55
|
|
63
|
56
|
return(
|
64
|
57
|
<List>
|
65
|
|
-
|
66
|
58
|
<ListSubheader inset>MENÚ</ListSubheader>
|
67
|
|
-
|
68
|
|
-
|
69
|
59
|
{
|
70
|
60
|
MainItems.map( ({ icon, title, route}) => (
|
71
|
61
|
<NavItem icon={icon} title={title} route={route} />
|
72
|
62
|
))
|
73
|
63
|
}
|
74
|
|
-
|
75
|
64
|
<ListItem selected={open} onClick={showPruebas}>
|
76
|
65
|
<ListItemIcon>
|
77
|
66
|
<Fingerprint />
|
78
|
67
|
</ListItemIcon>
|
79
|
|
-
|
80
|
|
-
|
81
|
68
|
<ListItemText
|
82
|
|
- sx={{
|
83
|
|
- fontSize: 12,
|
84
|
|
- ' .css-10hburv-MuiTypography-root' : {
|
85
|
|
- fontSize : '.875rem'
|
86
|
|
- },
|
87
|
|
- }}
|
|
69
|
+ sx={TxTStyle}
|
88
|
70
|
primary="Pruebas"
|
89
|
71
|
/>
|
90
|
72
|
{open ? <ExpandLess /> : <ExpandMore />}
|
91
|
73
|
</ListItem>
|
92
|
|
-
|
93
|
|
-
|
94
|
74
|
<Collapse in={open} timeout="auto" unmountOnExit>
|
95
|
75
|
<List component="div" disablePadding>
|
96
|
76
|
{
|
|
@@ -101,8 +81,6 @@ export const MainListItems = (props) => {
|
101
|
81
|
</List>
|
102
|
82
|
</Collapse>
|
103
|
83
|
|
104
|
|
- <NavItem icon={<MiscellaneousServices/>} title="Configuraciones" route="configuraciones" />
|
105
|
|
- <NavItem icon={<History/>} title="Historial" route="historial" />
|
106
|
84
|
</List>
|
107
|
85
|
)
|
108
|
86
|
};
|