remove updateCoinBaseAmount action

This commit is contained in:
Jared Pereira 2017-04-24 12:18:54 +04:00
parent 5cabd3e02d
commit 7f12be6a01
3 changed files with 0 additions and 25 deletions

View File

@ -134,8 +134,6 @@ var actions = {
buyEth: buyEth,
buyEthView: buyEthView,
BUY_ETH_VIEW: 'BUY_ETH_VIEW',
UPDATE_COINBASE_AMOUNT: 'UPDATE_COIBASE_AMOUNT',
updateCoinBaseAmount: updateCoinBaseAmount,
COINBASE_SUBVIEW: 'COINBASE_SUBVIEW',
coinBaseSubview: coinBaseSubview,
SHAPESHIFT_SUBVIEW: 'SHAPESHIFT_SUBVIEW',
@ -850,13 +848,6 @@ function buyEthView (address) {
}
}
function updateCoinBaseAmount (value) {
return {
type: actions.UPDATE_COINBASE_AMOUNT,
value,
}
}
function coinBaseSubview () {
return {
type: actions.COINBASE_SUBVIEW,

View File

@ -45,9 +45,6 @@ CoinbaseForm.prototype.render = function () {
]),
])
}
CoinbaseForm.prototype.handleAmount = function (event) {
this.props.dispatch(actions.updateCoinBaseAmount(event.target.value))
}
CoinbaseForm.prototype.toCoinbase = function () {
const props = this.props

View File

@ -481,19 +481,6 @@ function reduceApp (state, action) {
},
})
case actions.UPDATE_COINBASE_AMOUNT:
return extend(appState, {
buyView: {
subview: 'Coinbase',
formView: {
coinbase: true,
shapeshift: false,
},
buyAddress: appState.buyView.buyAddress,
amount: action.value,
},
})
case actions.COINBASE_SUBVIEW:
return extend(appState, {
buyView: {