1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Fix rendering QR code in old UI, hide unnecessary back button

This commit is contained in:
Alexander Tseung 2018-01-16 17:41:42 -08:00
parent 77eb7b2db6
commit 65e9d9efc5
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ html, body {
background: #F7F7F7;
margin: 0;
padding: 0;
height: 100%;
}
html {

View File

@ -62,6 +62,7 @@ DepositEtherModal.prototype.renderRow = function ({
hideButton,
hideTitle,
onBackClick,
showBackButton,
}) {
if (hide) {
return null
@ -71,7 +72,7 @@ DepositEtherModal.prototype.renderRow = function ({
className: className || 'deposit-ether-modal__buy-row',
}, [
h('div.deposit-ether-modal__buy-row__back', {
onBackClick && showBackButton && h('div.deposit-ether-modal__buy-row__back', {
onClick: onBackClick,
}, [
@ -167,6 +168,7 @@ DepositEtherModal.prototype.render = function () {
hideButton: buyingWithShapeshift,
hideTitle: buyingWithShapeshift,
onBackClick: () => this.setState({ buyingWithShapeshift: false }),
showBackButton: this.state.buyingWithShapeshift,
className: buyingWithShapeshift && 'deposit-ether-modal__buy-row__shapeshift-buy',
}),