1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add a to test faucet button

This commit is contained in:
Frankie 2016-08-12 15:59:12 -07:00
parent bf7435926f
commit b72c00a6c1

View File

@ -96,7 +96,6 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
return h(ShapeshiftForm, this.props)
}
} else {
console.log(this.props.network)
return h('div.flex-column', {
style: {
alignItems: 'center',
@ -108,6 +107,10 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
width: '225px',
},
}, 'In order to access this feature please switch too the Main Network'),
h('h3.text-transform-uppercase', 'or:'),
this.props.network === '2' ? h('button.text-transform-uppercase', {
onClick: () => this.props.dispatch(actions.buyEth()),
}, 'Go To Test Faucet') : null,
])
}
}