aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/customize-gas-modal
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-20 08:37:44 +0800
committerDan <danjm.com@gmail.com>2018-05-31 07:24:31 +0800
commit6f633a97e15e8277a065f987880cd666cc2fbf89 (patch)
treed484496cf79fbaea79dfaa3472182a008ae7c08a /ui/app/components/customize-gas-modal
parent8b6d08a15dc40b4cd8159a543b5cc6855f7848a8 (diff)
downloadtangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.tar
tangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.tar.gz
tangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.tar.bz2
tangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.tar.lz
tangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.tar.xz
tangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.tar.zst
tangerine-wallet-browser-6f633a97e15e8277a065f987880cd666cc2fbf89.zip
Rename gas change actions.
Diffstat (limited to 'ui/app/components/customize-gas-modal')
-rw-r--r--ui/app/components/customize-gas-modal/index.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js
index df933e363..9ab785760 100644
--- a/ui/app/components/customize-gas-modal/index.js
+++ b/ui/app/components/customize-gas-modal/index.js
@@ -65,9 +65,9 @@ function mapStateToProps (state) {
function mapDispatchToProps (dispatch) {
return {
hideModal: () => dispatch(actions.hideModal()),
- updateGasPrice: newGasPrice => dispatch(actions.updateGasPrice(newGasPrice)),
- updateGasLimit: newGasLimit => dispatch(actions.updateGasLimit(newGasLimit)),
- updateGasTotal: newGasTotal => dispatch(actions.setGasTotal(newGasTotal)),
+ setGasPrice: newGasPrice => dispatch(actions.setGasPrice(newGasPrice)),
+ setGasLimit: newGasLimit => dispatch(actions.setGasLimit(newGasLimit)),
+ updateGasData: newGasTotal => dispatch(actions.setGasTotal(newGasTotal)),
updateSendAmount: newAmount => dispatch(actions.updateSendAmount(newAmount)),
updateSendErrors: error => dispatch(updateSendErrors(error)),
}
@@ -109,10 +109,10 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(CustomizeGasModal)
CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) {
const {
- updateGasPrice,
- updateGasLimit,
+ setGasPrice,
+ setGasLimit,
hideModal,
- updateGasTotal,
+ updateGasData,
maxModeOn,
selectedToken,
balance,
@@ -129,9 +129,9 @@ CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) {
updateSendAmount(maxAmount)
}
- updateGasPrice(ethUtil.addHexPrefix(gasPrice))
- updateGasLimit(ethUtil.addHexPrefix(gasLimit))
- updateGasTotal(ethUtil.addHexPrefix(gasTotal))
+ setGasPrice(ethUtil.addHexPrefix(gasPrice))
+ setGasLimit(ethUtil.addHexPrefix(gasLimit))
+ updateGasData(ethUtil.addHexPrefix(gasTotal))
updateSendErrors({ insufficientFunds: false })
hideModal()
}