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 = (
|
const closeBtn = (
|
||||||
|
<Button
|
||||||
|
icon={ <ContentClear /> }
|
||||||
|
label='Close'
|
||||||
|
onClick={ this.onClose } />
|
||||||
|
);
|
||||||
|
|
||||||
|
const closeBtnOk = (
|
||||||
<Button
|
<Button
|
||||||
icon={ <ActionDoneAll /> }
|
icon={ <ActionDoneAll /> }
|
||||||
label='Close'
|
label='Close'
|
||||||
@ -127,7 +134,7 @@ export default class DeployContract extends Component {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (deployError) {
|
if (deployError) {
|
||||||
return cancelBtn;
|
return closeBtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (step) {
|
switch (step) {
|
||||||
@ -145,7 +152,7 @@ export default class DeployContract extends Component {
|
|||||||
return [ closeBtn ];
|
return [ closeBtn ];
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
return [ closeBtn ];
|
return [ closeBtnOk ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user