aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-09 16:00:06 +0800
committerkumavis <aaron@kumavis.me>2017-08-09 16:00:06 +0800
commit897d00efa0cf7b978983fd8d4c40febe40eba446 (patch)
tree5043cec2f04afe067f681227df8f0bff2bbe6f04 /ui
parent84c3d3c6dbb4454a599bb31008e71d052321ae02 (diff)
downloadtangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.tar
tangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.tar.gz
tangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.tar.bz2
tangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.tar.lz
tangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.tar.xz
tangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.tar.zst
tangerine-wallet-browser-897d00efa0cf7b978983fd8d4c40febe40eba446.zip
ui - buy eth - add dharma beta to kovan
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/buy-button-subview.js34
1 files changed, 22 insertions, 12 deletions
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js
index 27014eaf6..e4624ada8 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -138,30 +138,40 @@ BuyButtonSubview.prototype.primarySubview = function () {
switch (network) {
case 'loading':
return
-
+
case '1':
return this.mainnetSubview()
+ // Ropsten, Rinkeby, Kovan
case '3':
case '4':
case '42':
- const networkName = networkNames[network]
- const label = `${networkName} Test Faucet`
- return (
- h('div.flex-column', {
+ const networkName = networkNames[network]
+ const label = `${networkName} Test Faucet`
+ return (
+ h('div.flex-column', {
+ style: {
+ alignItems: 'center',
+ margin: '20px 50px',
+ },
+ }, [
+ h('button.text-transform-uppercase', {
+ onClick: () => this.props.dispatch(actions.buyEth({ network })),
style: {
- alignItems: 'center',
- margin: '20px 50px',
+ marginTop: '15px',
},
- }, [
+ }, label),
+ // Kovan only: Dharma loans beta
+ network === '42' ? (
h('button.text-transform-uppercase', {
- onClick: () => this.props.dispatch(actions.buyEth({ network })),
+ onClick: () => this.navigateTo('https://borrow.dharma.io/'),
style: {
marginTop: '15px',
},
- }, label),
- ])
- )
+ }, 'Borrow With Dharma (Beta)')
+ ) : null
+ ])
+ )
default:
return (