aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2018-01-18 05:49:48 +0800
committerGitHub <noreply@github.com>2018-01-18 05:49:48 +0800
commitba0762c582be7bdb3706f66300bc3d6a5c832836 (patch)
tree843f5931467183dd5a8e4fb11afd3b2eb1f46780 /ui/app
parentb80ed2c451fee7b94edea9d1655baa2e908939b9 (diff)
parent65e9d9efc56a99ecd3a46b98ed58af9604374f68 (diff)
downloadtangerine-wallet-browser-ba0762c582be7bdb3706f66300bc3d6a5c832836.tar.gz
tangerine-wallet-browser-ba0762c582be7bdb3706f66300bc3d6a5c832836.tar.zst
tangerine-wallet-browser-ba0762c582be7bdb3706f66300bc3d6a5c832836.zip
Merge pull request #3005 from alextsg/cb-385
[NewUI] Fix rendering QR code in full screen old UI, hide unnecessary back button
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/modals/deposit-ether-modal.js4
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',
}),