File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,18 @@ class InsertModalFooter extends Component {
28
28
children
29
29
} = this . props ;
30
30
31
- const content = children || (
32
- < span >
33
- < button
31
+ const content = children || [
32
+ ( < button
33
+ key = 'closeBtn'
34
34
type = 'button'
35
35
className = { `btn ${ closeBtnContextual } ${ closeBtnClass } ` }
36
- onClick = { this . handleCloseBtnClick } > { closeBtnText } </ button >
37
- < button
36
+ onClick = { this . handleCloseBtnClick } > { closeBtnText } </ button > ) ,
37
+ ( < button
38
+ key = 'saveBtn'
38
39
type = 'button'
39
40
className = { `btn ${ saveBtnContextual } ${ saveBtnClass } ` }
40
- onClick = { this . handleSaveBtnClick } > { saveBtnText } </ button >
41
- </ span >
42
- ) ;
41
+ onClick = { this . handleSaveBtnClick } > { saveBtnText } </ button > )
42
+ ] ;
43
43
44
44
return (
45
45
< div className = { `modal-footer ${ className } ` } >
@@ -65,7 +65,7 @@ InsertModalFooter.defaultProps = {
65
65
className : '' ,
66
66
saveBtnText : Const . SAVE_BTN_TEXT ,
67
67
closeBtnText : Const . CLOSE_BTN_TEXT ,
68
- closeBtnContextual : 'btn-default' ,
68
+ closeBtnContextual : 'btn-default btn-secondary ' ,
69
69
saveBtnContextual : 'btn-primary' ,
70
70
closeBtnClass : '' ,
71
71
saveBtnClass : '' ,
You can’t perform that action at this time.
0 commit comments