File tree Expand file tree Collapse file tree 3 files changed +44
-26
lines changed Expand file tree Collapse file tree 3 files changed +44
-26
lines changed Original file line number Diff line number Diff line change @@ -46,39 +46,52 @@ const SimpleModal = (props) => {
46
46
onClose = { closeModal }
47
47
open = { open }
48
48
>
49
- < div style = { {
50
- top : '50%' ,
51
- left : '50%' ,
52
- transform : 'translate(-50%, -50%)' ,
53
- } } className = { classes . paper } >
49
+ < div
50
+ style = { {
51
+ top : '50%' ,
52
+ left : '50%' ,
53
+ transform : 'translate(-50%, -50%)' ,
54
+ } }
55
+ className = { classes . paper }
56
+ >
54
57
< Icon
55
58
onClick = { closeModal }
56
- className = ' closeIcon'
59
+ className = " closeIcon"
57
60
style = { {
58
61
position : 'absolute' ,
59
62
top : '2%' ,
60
63
right : '1%' ,
61
64
fontSize : '17px' ,
62
65
fontWeight : 'bold' ,
63
66
} }
64
- > close</ Icon >
67
+ >
68
+ close
69
+ </ Icon >
65
70
< Typography variant = "title" id = "modal-title" >
66
71
{ message }
67
72
</ Typography >
73
+ < div > { children } </ div >
68
74
< div >
69
- { children }
70
- </ div >
71
- < div >
72
- {
73
- secBtnLabel ? < Button variant = 'extendedFab' color = "secondary" className = { classes . button } onClick = { secBtnAction } >
75
+ { secBtnLabel ? (
76
+ < Button
77
+ variant = "extendedFab"
78
+ color = "secondary"
79
+ className = { classes . button }
80
+ onClick = { secBtnAction }
81
+ >
74
82
{ secBtnLabel }
75
- </ Button > : null
76
- }
77
- {
78
- primBtnLabel ? < Button variant = 'extendedFab' color = "primary" className = { classes . button } onClick = { primBtnAction } >
83
+ </ Button >
84
+ ) : null }
85
+ { primBtnLabel ? (
86
+ < Button
87
+ variant = "extendedFab"
88
+ color = "primary"
89
+ className = { classes . button }
90
+ onClick = { primBtnAction }
91
+ >
79
92
{ primBtnLabel }
80
- </ Button > : null
81
- }
93
+ </ Button >
94
+ ) : null }
82
95
</ div >
83
96
</ div >
84
97
</ Modal >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
} from '../actions/components' ;
20
20
import KonvaStage from '../components/KonvaStage.jsx' ;
21
21
import MainContainerHeader from '../components/MainContainerHeader.jsx' ;
22
- // import createModal from '../utils/createModal.util';
22
+ import createModal from '../utils/createModal.util' ;
23
23
24
24
const IPC = require ( 'electron' ) . ipcRenderer ;
25
25
@@ -158,6 +158,7 @@ class MainContainer extends Component {
158
158
} ;
159
159
160
160
showGenerateAppModal = ( ) => {
161
+ console . log ( 'clicked on export button' ) ;
161
162
const { closeModal, chooseGenOptions } = this ;
162
163
const { genOptions } = this . state ;
163
164
const children = (
@@ -174,13 +175,13 @@ class MainContainer extends Component {
174
175
) ) }
175
176
</ List >
176
177
) ;
177
- // this.setState({
178
- // modal: createModal({
179
- // closeModal,
180
- // children,
181
- // message: 'Choose export preference:',
182
- // }),
183
- // });
178
+ this . setState ( {
179
+ modal : createModal ( {
180
+ closeModal,
181
+ children,
182
+ message : 'Choose export preference:' ,
183
+ } ) ,
184
+ } ) ;
184
185
} ;
185
186
186
187
render ( ) {
Original file line number Diff line number Diff line change @@ -269,3 +269,7 @@ div.rst__rowContents {
269
269
.rst__rowLabel {
270
270
padding-right : 5px ;
271
271
}
272
+
273
+ .closeIcon : hover {
274
+ cursor : pointer;
275
+ }
You can’t perform that action at this time.
0 commit comments