Merge pull request #3005 from alextsg/cb-385

[NewUI] Fix rendering QR code in full screen old UI, hide unnecessary back button
This commit is contained in:
Chi Kei Chan 2018-01-17 13:49:48 -08:00 committed by GitHub
commit ba0762c582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',
}),