mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01: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;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
html {
|
||||
|
@ -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',
|
||||
}),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user