amenpunk %!s(int64=3) %!d(string=hai) anos
pai
achega
e75fb35c40
Modificáronse 2 ficheiros con 2 adicións e 34 borrados
  1. 2 7
      Jenkinsfile
  2. 0 27
      src/Components/listItems.js

+ 2 - 7
Jenkinsfile

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

+ 0 - 27
src/Components/listItems.js

@@ -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 = () => {