mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Change coinbase to wyre
This commit is contained in:
parent
a46ec83c9b
commit
6a80ff2718
@ -28,8 +28,8 @@ function mapStateToProps (state) {
|
|||||||
|
|
||||||
function mapDispatchToProps (dispatch) {
|
function mapDispatchToProps (dispatch) {
|
||||||
return {
|
return {
|
||||||
toCoinbase: (address) => {
|
toWyre: (address) => {
|
||||||
dispatch(actions.buyEth({ service: 'coinbase', address, amount: 0 }))
|
dispatch(actions.buyEth({ service: 'wyre', address, amount: 0 }))
|
||||||
},
|
},
|
||||||
toCoinSwitch: (address) => {
|
toCoinSwitch: (address) => {
|
||||||
dispatch(actions.buyEth({ service: 'coinswitch', address }))
|
dispatch(actions.buyEth({ service: 'coinswitch', address }))
|
||||||
@ -130,7 +130,7 @@ DepositEtherModal.prototype.renderRow = function ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
DepositEtherModal.prototype.render = function () {
|
DepositEtherModal.prototype.render = function () {
|
||||||
const { network, toCoinbase, toCoinSwitch, address, toFaucet } = this.props
|
const { network, toWyre, toCoinSwitch, address, toFaucet } = this.props
|
||||||
const { buyingWithShapeshift } = this.state
|
const { buyingWithShapeshift } = this.state
|
||||||
|
|
||||||
const isTestNetwork = ['3', '4', '42'].find(n => n === network)
|
const isTestNetwork = ['3', '4', '42'].find(n => n === network)
|
||||||
@ -190,7 +190,7 @@ DepositEtherModal.prototype.render = function () {
|
|||||||
title: WYRE_ROW_TITLE,
|
title: WYRE_ROW_TITLE,
|
||||||
text: WYRE_ROW_TEXT,
|
text: WYRE_ROW_TEXT,
|
||||||
buttonLabel: this.context.t('continueToWyre'),
|
buttonLabel: this.context.t('continueToWyre'),
|
||||||
onButtonClick: () => toCoinbase(address),
|
onButtonClick: () => toWyre(address),
|
||||||
hide: isTestNetwork || buyingWithShapeshift,
|
hide: isTestNetwork || buyingWithShapeshift,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user