diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-01-17 09:41:42 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-01-17 09:41:42 +0800 |
commit | 65e9d9efc56a99ecd3a46b98ed58af9604374f68 (patch) | |
tree | 1340fe6de5e102493d0999936cd84d1439588456 /ui | |
parent | 77eb7b2db692cc40bf5f8e36c5e695e8f82c76ec (diff) | |
download | tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.tar tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.tar.gz tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.tar.bz2 tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.tar.lz tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.tar.xz tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.tar.zst tangerine-wallet-browser-65e9d9efc56a99ecd3a46b98ed58af9604374f68.zip |
Fix rendering QR code in old UI, hide unnecessary back button
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/modals/deposit-ether-modal.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/modals/deposit-ether-modal.js b/ui/app/components/modals/deposit-ether-modal.js index 3e6d3fde1..532d66653 100644 --- a/ui/app/components/modals/deposit-ether-modal.js +++ b/ui/app/components/modals/deposit-ether-modal.js @@ -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', }), |