Browse Source

nvm 14.18.3

amenpunk 3 years ago
parent
commit
e75fb35c40
2 changed files with 2 additions and 34 deletions
  1. 2 7
      Jenkinsfile
  2. 0 27
      src/Components/listItems.js

+ 2 - 7
Jenkinsfile

5
         }
5
         }
6
     }
6
     }
7
     stages {
7
     stages {
8
-        stage('test') {
9
-            steps {
10
-                sh 'echo pwd'
11
-            }
12
-        }
13
         stage('install dependencies') {
8
         stage('install dependencies') {
14
             steps {
9
             steps {
15
-                nvm( version : '16.13.2' ){
10
+                nvm( version : '14.18.3' ){
16
                     sh 'npm install'
11
                     sh 'npm install'
17
                 }
12
                 }
18
             }
13
             }
19
         }
14
         }
20
         stage('build') {
15
         stage('build') {
21
             steps {
16
             steps {
22
-                nvm( version : '16.13.2' ){
17
+                nvm( version : '14.18.3' ){
23
                     sh 'npm run build'
18
                     sh 'npm run build'
24
                 }
19
                 }
25
             }
20
             }

+ 0 - 27
src/Components/listItems.js

27
 import ExpandMore from '@mui/icons-material/ExpandMore';
27
 import ExpandMore from '@mui/icons-material/ExpandMore';
28
 import { useNavigate, useResolvedPath, useMatch } from 'react-router-dom'
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
 function NavItem (props) {
30
 function NavItem (props) {
57
     
31
     
58
     let navigate = useNavigate()
32
     let navigate = useNavigate()
85
 
59
 
86
 export const MainListItems = (props) =>  {
60
 export const MainListItems = (props) =>  {
87
 
61
 
88
-
89
     const [open, setOpen] = React.useState(false);
62
     const [open, setOpen] = React.useState(false);
90
 
63
 
91
     const showPruebas = () => {
64
     const showPruebas = () => {