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:
parent
77eb7b2db6
commit
65e9d9efc5
@ -21,6 +21,7 @@ html, body {
|
|||||||
background: #F7F7F7;
|
background: #F7F7F7;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
@ -62,6 +62,7 @@ DepositEtherModal.prototype.renderRow = function ({
|
|||||||
hideButton,
|
hideButton,
|
||||||
hideTitle,
|
hideTitle,
|
||||||
onBackClick,
|
onBackClick,
|
||||||
|
showBackButton,
|
||||||
}) {
|
}) {
|
||||||
if (hide) {
|
if (hide) {
|
||||||
return null
|
return null
|
||||||
@ -71,7 +72,7 @@ DepositEtherModal.prototype.renderRow = function ({
|
|||||||
className: className || 'deposit-ether-modal__buy-row',
|
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,
|
onClick: onBackClick,
|
||||||
}, [
|
}, [
|
||||||
|
|
||||||
@ -167,6 +168,7 @@ DepositEtherModal.prototype.render = function () {
|
|||||||
hideButton: buyingWithShapeshift,
|
hideButton: buyingWithShapeshift,
|
||||||
hideTitle: buyingWithShapeshift,
|
hideTitle: buyingWithShapeshift,
|
||||||
onBackClick: () => this.setState({ buyingWithShapeshift: false }),
|
onBackClick: () => this.setState({ buyingWithShapeshift: false }),
|
||||||
|
showBackButton: this.state.buyingWithShapeshift,
|
||||||
className: buyingWithShapeshift && 'deposit-ether-modal__buy-row__shapeshift-buy',
|
className: buyingWithShapeshift && 'deposit-ether-modal__buy-row__shapeshift-buy',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user