File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ const styles = (theme: any): any => ({
12
12
width : 'auto' ,
13
13
maxWidth : '500px' ,
14
14
height : 'auto' ,
15
- maxHeight : '300px ' ,
15
+ maxHeight : '500px ' ,
16
16
backgroundColor : theme . palette . background . paper ,
17
17
boxShadow : theme . shadows [ 5 ] ,
18
18
padding : '4%' ,
19
19
minWidth : '500px' ,
20
- minHeight : '300px' ,
20
+ minHeight : '300px'
21
21
} ,
22
22
button : {
23
23
marginTop : '0%' ,
24
24
height : 'auto' ,
25
25
marginLeft : '3%' ,
26
26
borderRadius : '4px' ,
27
- float : 'right' ,
28
- } ,
27
+ float : 'right'
28
+ }
29
29
} ) ;
30
30
31
31
const SimpleModal = ( props : any ) => {
@@ -38,47 +38,47 @@ const SimpleModal = (props: any) => {
38
38
primBtnAction,
39
39
secBtnAction,
40
40
closeModal,
41
- children = null ,
41
+ children = null
42
42
} = props ;
43
43
44
44
return (
45
45
< Fragment >
46
46
< Modal
47
- aria-labelledby = " simple-modal-title"
48
- aria-describedby = " simple-modal-description"
47
+ aria-labelledby = ' simple-modal-title'
48
+ aria-describedby = ' simple-modal-description'
49
49
onClose = { closeModal }
50
50
open = { open }
51
51
>
52
52
< div
53
53
style = { {
54
54
top : '50%' ,
55
55
left : '50%' ,
56
- transform : 'translate(-50%, -50%)' ,
56
+ transform : 'translate(-50%, -50%)'
57
57
} }
58
58
className = { classes . paper }
59
59
>
60
60
< IconButton
61
- aria-label = " Close"
61
+ aria-label = ' Close'
62
62
onClick = { closeModal }
63
63
style = { {
64
64
position : 'absolute' ,
65
65
top : '2%' ,
66
66
right : '1%' ,
67
67
fontSize : '17px' ,
68
- fontWeight : 'bold' ,
68
+ fontWeight : 'bold'
69
69
} }
70
70
>
71
71
< CloseIcon />
72
72
</ IconButton >
73
- < Typography variant = "h6" id = " modal-title" >
73
+ < Typography variant = 'h6' id = ' modal-title' >
74
74
{ message }
75
75
</ Typography >
76
76
< div > { children } </ div >
77
77
< div >
78
78
{ secBtnLabel ? (
79
79
< Button
80
- variant = " contained"
81
- color = " secondary"
80
+ variant = ' contained'
81
+ color = ' secondary'
82
82
className = { classes . button }
83
83
onClick = { secBtnAction }
84
84
>
@@ -87,8 +87,8 @@ const SimpleModal = (props: any) => {
87
87
) : null }
88
88
{ primBtnLabel ? (
89
89
< Button
90
- variant = " contained"
91
- color = " primary"
90
+ variant = ' contained'
91
+ color = ' primary'
92
92
className = { classes . button }
93
93
onClick = { primBtnAction }
94
94
>
You can’t perform that action at this time.
0 commit comments