aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-10 03:22:26 +0800
committerDan <danjm.com@gmail.com>2018-04-10 03:22:26 +0800
commit2c4426e4de745be880a994674dc1dc74c7ec74eb (patch)
tree1de9b836026d3222b490793099b66372404b83ab /ui/app/components/send
parent9dbb9d12ad31d53b8911db171cb7d6b3fcb477e2 (diff)
parent4cae3d3b0d2a9cc0279e44de256e7fc7e219dca1 (diff)
downloadtangerine-wallet-browser-2c4426e4de745be880a994674dc1dc74c7ec74eb.tar.gz
tangerine-wallet-browser-2c4426e4de745be880a994674dc1dc74c7ec74eb.tar.zst
tangerine-wallet-browser-2c4426e4de745be880a994674dc1dc74c7ec74eb.zip
Merge branch 'master' into i3580-InternationalizeCurrency
Diffstat (limited to 'ui/app/components/send')
-rw-r--r--ui/app/components/send/send-v2-container.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/send/send-v2-container.js b/ui/app/components/send/send-v2-container.js
index 08c26a91f..aca1a5a0a 100644
--- a/ui/app/components/send/send-v2-container.js
+++ b/ui/app/components/send/send-v2-container.js
@@ -2,6 +2,8 @@ const connect = require('react-redux').connect
const actions = require('../../actions')
const abi = require('ethereumjs-abi')
const SendEther = require('../../send-v2')
+const { withRouter } = require('react-router-dom')
+const { compose } = require('recompose')
const {
accountsWithSendEtherInfoSelector,
@@ -16,7 +18,10 @@ const {
getSelectedTokenContract,
} = require('../../selectors')
-module.exports = connect(mapStateToProps, mapDispatchToProps)(SendEther)
+module.exports = compose(
+ withRouter,
+ connect(mapStateToProps, mapDispatchToProps)
+)(SendEther)
function mapStateToProps (state) {
const fromAccounts = accountsWithSendEtherInfoSelector(state)
@@ -79,7 +84,6 @@ function mapDispatchToProps (dispatch) {
updateSendAmount: newAmount => dispatch(actions.updateSendAmount(newAmount)),
updateSendMemo: newMemo => dispatch(actions.updateSendMemo(newMemo)),
updateSendErrors: newError => dispatch(actions.updateSendErrors(newError)),
- goHome: () => dispatch(actions.goHome()),
clearSend: () => dispatch(actions.clearSend()),
setMaxModeTo: bool => dispatch(actions.setMaxModeTo(bool)),
}