File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed
ContextAPIManager/CreateTab Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,19 @@ const CreateContainer = () => {
54
54
55
55
const triggerError = ( type : String ) => {
56
56
setErrorStatus ( true ) ;
57
- if ( type === 'empty' ) {
58
- setErrorMsg ( 'Context name cannot be blank.' ) ;
59
- } else if ( type === 'dupe' ) {
60
- setErrorMsg ( 'Context name already exists.' ) ;
61
- } else if ( type === 'letters' ) {
62
- setErrorMsg ( 'Context name must start with a letter.' ) ;
63
- } else if ( type === 'symbolsDetected' ) {
64
- setErrorMsg ( 'Context name must not contain symbols.' ) ;
57
+ switch ( type ) {
58
+ case 'empty' :
59
+ setErrorMsg ( 'Context name cannot be blank.' ) ;
60
+ break ;
61
+ case 'dupe' :
62
+ setErrorMsg ( 'Context name already exists.' ) ;
63
+ break ;
64
+ case 'letters' :
65
+ setErrorMsg ( 'Context name must start with a letter.' ) ;
66
+ break ;
67
+ case 'symbolsDetected' :
68
+ setErrorMsg ( 'Context name must not contain symbols.' ) ;
69
+ break ;
65
70
}
66
71
} ;
67
72
Original file line number Diff line number Diff line change @@ -198,12 +198,12 @@ const useStyles = makeStyles((theme) => ({
198
198
}
199
199
} ,
200
200
tabSelected : { } ,
201
- // typography: {
202
- // padding: theme.spacing(3)
203
- // / / },
204
- // padding: {
205
- // padding: `0 ${theme.spacing(2)} `
206
- // },
201
+ typography : {
202
+ padding : '24px'
203
+ } ,
204
+ padding : {
205
+ padding : `0 16px `
206
+ } ,
207
207
switch : {
208
208
marginRight : '10px' ,
209
209
marginTop : '2px'
You can’t perform that action at this time.
0 commit comments