diff options
author | Dan <danjm.com@gmail.com> | 2018-04-28 03:03:00 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-30 23:35:48 +0800 |
commit | 26f965bcceb26ce7cdec9df9f213b44be8d9acac (patch) | |
tree | 155bad73750b5c3905f799eac6d298c9dc7305dc /ui/app/components/send/send-v2-container.js | |
parent | 33c16d1bf62133a87d8f24232ee85438a6b6a0e6 (diff) | |
download | tangerine-wallet-browser-26f965bcceb26ce7cdec9df9f213b44be8d9acac.tar.gz tangerine-wallet-browser-26f965bcceb26ce7cdec9df9f213b44be8d9acac.tar.zst tangerine-wallet-browser-26f965bcceb26ce7cdec9df9f213b44be8d9acac.zip |
Further refactors; includes refactor of send-v2.js and associated container
Diffstat (limited to 'ui/app/components/send/send-v2-container.js')
-rw-r--r-- | ui/app/components/send/send-v2-container.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/components/send/send-v2-container.js b/ui/app/components/send/send-v2-container.js index adfc91240..6464439f2 100644 --- a/ui/app/components/send/send-v2-container.js +++ b/ui/app/components/send/send-v2-container.js @@ -18,6 +18,10 @@ const { getSelectedTokenContract, } = require('../../selectors') +import { + updateSendErrors, +} from '../../ducks/send' + module.exports = compose( withRouter, connect(mapStateToProps, mapDispatchToProps) @@ -74,7 +78,8 @@ function mapDispatchToProps (dispatch) { updateTx: txData => dispatch(actions.updateTransaction(txData)), setSelectedAddress: address => dispatch(actions.setSelectedAddress(address)), addToAddressBook: (address, nickname) => dispatch(actions.addToAddressBook(address, nickname)), - updateGasTotal: newTotal => dispatch(actions.updateGasTotal(newTotal)), + setGasTotal: newTotal => dispatch(actions.setGasTotal(newTotal)), + updateGasTotal: () => dispatch(actions.updateGasTotal()), updateGasPrice: newGasPrice => dispatch(actions.updateGasPrice(newGasPrice)), updateGasLimit: newGasLimit => dispatch(actions.updateGasLimit(newGasLimit)), updateSendTokenBalance: tokenBalance => dispatch(actions.updateSendTokenBalance(tokenBalance)), @@ -82,7 +87,7 @@ function mapDispatchToProps (dispatch) { updateSendTo: (newTo, nickname) => dispatch(actions.updateSendTo(newTo, nickname)), updateSendAmount: newAmount => dispatch(actions.updateSendAmount(newAmount)), updateSendMemo: newMemo => dispatch(actions.updateSendMemo(newMemo)), - updateSendErrors: newError => dispatch(actions.updateSendErrors(newError)), + updateSendErrors: newError => dispatch(updateSendErrors(newError)), clearSend: () => dispatch(actions.clearSend()), setMaxModeTo: bool => dispatch(actions.setMaxModeTo(bool)), } |