mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
ui - buy eth - add dharma beta to kovan
This commit is contained in:
parent
84c3d3c6db
commit
897d00efa0
@ -142,26 +142,36 @@ BuyButtonSubview.prototype.primarySubview = function () {
|
|||||||
case '1':
|
case '1':
|
||||||
return this.mainnetSubview()
|
return this.mainnetSubview()
|
||||||
|
|
||||||
|
// Ropsten, Rinkeby, Kovan
|
||||||
case '3':
|
case '3':
|
||||||
case '4':
|
case '4':
|
||||||
case '42':
|
case '42':
|
||||||
const networkName = networkNames[network]
|
const networkName = networkNames[network]
|
||||||
const label = `${networkName} Test Faucet`
|
const label = `${networkName} Test Faucet`
|
||||||
return (
|
return (
|
||||||
h('div.flex-column', {
|
h('div.flex-column', {
|
||||||
|
style: {
|
||||||
|
alignItems: 'center',
|
||||||
|
margin: '20px 50px',
|
||||||
|
},
|
||||||
|
}, [
|
||||||
|
h('button.text-transform-uppercase', {
|
||||||
|
onClick: () => this.props.dispatch(actions.buyEth({ network })),
|
||||||
style: {
|
style: {
|
||||||
alignItems: 'center',
|
marginTop: '15px',
|
||||||
margin: '20px 50px',
|
|
||||||
},
|
},
|
||||||
}, [
|
}, label),
|
||||||
|
// Kovan only: Dharma loans beta
|
||||||
|
network === '42' ? (
|
||||||
h('button.text-transform-uppercase', {
|
h('button.text-transform-uppercase', {
|
||||||
onClick: () => this.props.dispatch(actions.buyEth({ network })),
|
onClick: () => this.navigateTo('https://borrow.dharma.io/'),
|
||||||
style: {
|
style: {
|
||||||
marginTop: '15px',
|
marginTop: '15px',
|
||||||
},
|
},
|
||||||
}, label),
|
}, 'Borrow With Dharma (Beta)')
|
||||||
])
|
) : null
|
||||||
)
|
])
|
||||||
|
)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user