Better close icons in Modals
This commit is contained in:
parent
723005635a
commit
125ac1a69a
@ -120,6 +120,13 @@ export default class DeployContract extends Component {
|
||||
);
|
||||
|
||||
const closeBtn = (
|
||||
<Button
|
||||
icon={ <ContentClear /> }
|
||||
label='Close'
|
||||
onClick={ this.onClose } />
|
||||
);
|
||||
|
||||
const closeBtnOk = (
|
||||
<Button
|
||||
icon={ <ActionDoneAll /> }
|
||||
label='Close'
|
||||
@ -127,7 +134,7 @@ export default class DeployContract extends Component {
|
||||
);
|
||||
|
||||
if (deployError) {
|
||||
return cancelBtn;
|
||||
return closeBtn;
|
||||
}
|
||||
|
||||
switch (step) {
|
||||
@ -145,7 +152,7 @@ export default class DeployContract extends Component {
|
||||
return [ closeBtn ];
|
||||
|
||||
case 2:
|
||||
return [ closeBtn ];
|
||||
return [ closeBtnOk ];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user