Better close icons in Modals

This commit is contained in:
Nicolas Gotchac 2016-11-15 12:52:37 +01:00
parent 723005635a
commit 125ac1a69a

View File

@ -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 ];
}
}