aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/buy-button-subview.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-04-05 09:23:46 +0800
committerkumavis <aaron@kumavis.me>2017-04-05 09:23:46 +0800
commit5a91adf7d802097805938e3d54fe7256b19724d1 (patch)
tree9ad83ef345650796822b5462cff0d0bf5eab9b22 /ui/app/components/buy-button-subview.js
parent5d967eeebb9f3cf4c2d3fcfe0b74cf6e8440c3cb (diff)
downloadtangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar
tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.gz
tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.bz2
tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.lz
tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.xz
tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.tar.zst
tangerine-wallet-browser-5a91adf7d802097805938e3d54fe7256b19724d1.zip
add platforms to mascara + move buyEther window open to ui
Diffstat (limited to 'ui/app/components/buy-button-subview.js')
-rw-r--r--ui/app/components/buy-button-subview.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js
index 2b1675b6d..6810303e1 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -104,7 +104,8 @@ BuyButtonSubview.prototype.render = function () {
}
BuyButtonSubview.prototype.formVersionSubview = function () {
- if (this.props.network === '1') {
+ const network = this.props.network
+ if (network === '1') {
if (this.props.buyView.formView.coinbase) {
return h(CoinbaseForm, this.props)
} else if (this.props.buyView.formView.shapeshift) {
@@ -123,15 +124,15 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
marginBottom: '15px',
},
}, 'In order to access this feature, please switch to the Main Network'),
- ((this.props.network === '3') || (this.props.network === '42')) ? h('h3.text-transform-uppercase', 'or go to the') : null,
- (this.props.network === '3') ? h('button.text-transform-uppercase', {
- onClick: () => this.props.dispatch(actions.buyEth()),
+ ((network === '3') || (network === '42')) ? h('h3.text-transform-uppercase', 'or go to the') : null,
+ (network === '3') ? h('button.text-transform-uppercase', {
+ onClick: () => this.props.dispatch(actions.buyEth({ network })),
style: {
marginTop: '15px',
},
}, 'Ropsten Test Faucet') : null,
- (this.props.network === '42') ? h('button.text-transform-uppercase', {
- onClick: () => this.props.dispatch(actions.buyEth()),
+ (network === '42') ? h('button.text-transform-uppercase', {
+ onClick: () => this.props.dispatch(actions.buyEth({ network })),
style: {
marginTop: '15px',
},