amenpunk 4 роки тому
батько
коміт
e75fb35c40
2 змінених файлів з 2 додано та 34 видалено
  1. 2 7
      Jenkinsfile
  2. 0 27
      src/Components/listItems.js

+ 2 - 7
Jenkinsfile

@@ -5,21 +5,16 @@ pipeline {
         }
     }
     stages {
-        stage('test') {
-            steps {
-                sh 'echo pwd'
-            }
-        }
         stage('install dependencies') {
             steps {
-                nvm( version : '16.13.2' ){
+                nvm( version : '14.18.3' ){
                     sh 'npm install'
                 }
             }
         }
         stage('build') {
             steps {
-                nvm( version : '16.13.2' ){
+                nvm( version : '14.18.3' ){
                     sh 'npm run build'
                 }
             }

+ 0 - 27
src/Components/listItems.js

@@ -27,32 +27,6 @@ import ExpandLess from '@mui/icons-material/ExpandLess';
 import ExpandMore from '@mui/icons-material/ExpandMore';
 import { useNavigate, useResolvedPath, useMatch } from 'react-router-dom'
 
-function SubMenuItem (props) {
-
-    let navigate = useNavigate()
-    let resolved = useResolvedPath(props.route);
-    let match = useMatch({ path: resolved.pathname, end: true });
-
-    return(
-        <ListItem 
-            sx={{ pl: 9,  color : '#25344f'}}
-            selected={match}
-            onClick={() => navigate(props.route)} 
-            button
-        >
-            <ListItemText 
-                sx={{
-                    fontSize: 12,
-                    ' .css-10hburv-MuiTypography-root' : {
-                        fontSize : '.875rem'
-                    },
-                }}
-                primary={props.title} 
-            />
-        </ListItem>
-    )
-}
-
 function NavItem (props) {
     
     let navigate = useNavigate()
@@ -85,7 +59,6 @@ function NavItem (props) {
 
 export const MainListItems = (props) =>  {
 
-
     const [open, setOpen] = React.useState(false);
 
     const showPruebas = () => {