@@ -20,7 +20,6 @@ import { useDrawer } from '@janus-idp/shared-react';
2020import Alert from '@mui/material/Alert' ;
2121import AlertTitle from '@mui/material/AlertTitle' ;
2222import FormControl from '@mui/material/FormControl' ;
23- import { makeStyles } from '@mui/styles' ;
2423import { useFormikContext } from 'formik' ;
2524import { get } from 'lodash' ;
2625
@@ -37,33 +36,28 @@ import { PreviewFileSidebar } from '../PreviewFile/PreviewFileSidebar';
3736import { AddRepositoriesFormFooter } from './AddRepositoriesFormFooter' ;
3837import { AddRepositoriesTable } from './AddRepositoriesTable' ;
3938
40- const useStyles = makeStyles ( ( ) => ( {
41- body : {
42- marginBottom : '50px' ,
43- padding : '24px' ,
44- } ,
45- // We would need this once the ServiceNow approval tool is incorporated in the plugin
46- // approvalTool: {
47- // display: 'flex',
48- // flexDirection: 'row',
49- // justifyContent: 'left',
50- // alignItems: 'center',
51- // paddingTop: '24px',
52- // paddingBottom: '24px',
53- // paddingLeft: '16px',
54- // backgroundColor: theme.palette.background.paper,
55- // borderBottomStyle: 'groove',
56- // border: theme.palette.divider,
57- // },
58- approvalToolTooltip : {
59- paddingTop : '4px' ,
60- paddingRight : '24px' ,
61- paddingLeft : '5px' ,
62- } ,
63- } ) ) ;
39+ // const useStyles = makeStyles(() => ({
40+ // // We would need this once the ServiceNow approval tool is incorporated in the plugin
41+ // approvalTool: {
42+ // display: 'flex',
43+ // flexDirection: 'row',
44+ // justifyContent: 'left',
45+ // alignItems: 'center',
46+ // paddingTop: '24px',
47+ // paddingBottom: '24px',
48+ // paddingLeft: '16px',
49+ // backgroundColor: theme.palette.background.paper,
50+ // borderBottomStyle: 'groove',
51+ // border: theme.palette.divider,
52+ // },
53+ // approvalToolTooltip: {
54+ // paddingTop: '4px',
55+ // paddingRight: '24px',
56+ // paddingLeft: '5px',
57+ // },
58+ // }));
6459
6560export const AddRepositories = ( { error } : { error : any } ) => {
66- const styles = useStyles ( ) ;
6761 const { openDrawer, setOpenDrawer, drawerData } = useDrawer ( ) ;
6862 const { setFieldValue, values } =
6963 useFormikContext < AddRepositoriesFormValues > ( ) ;
@@ -85,7 +79,12 @@ export const AddRepositories = ({ error }: { error: any }) => {
8579 return (
8680 < >
8781 < FormControl fullWidth >
88- < div className = { styles . body } >
82+ < div
83+ style = { {
84+ marginBottom : '50px' ,
85+ padding : '24px' ,
86+ } }
87+ >
8988 { error && (
9089 < div style = { { paddingBottom : '10px' } } >
9190 < Alert severity = "error" >
0 commit comments