aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/conf-tx.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-13 03:41:31 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-13 03:44:51 +0800
commit19db11856bef65c38d96eb1d6084d88ab6e7eebc (patch)
treeed75d3ea84c947ea5fb838b6fb83d75eb596cca2 /ui/app/conf-tx.js
parentdaec667c16c9a55e6357871a82ff2b863501a393 (diff)
downloadtangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.tar
tangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.tar.gz
tangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.tar.bz2
tangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.tar.lz
tangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.tar.xz
tangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.tar.zst
tangerine-wallet-browser-19db11856bef65c38d96eb1d6084d88ab6e7eebc.zip
Remove redux dependency from eth-balance and its dependent tree
For better unit testability of the conf-tx view.
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r--ui/app/conf-tx.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js
index 83ac5a4fd..c4df66931 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -27,6 +27,7 @@ function mapStateToProps (state) {
warning: state.appState.warning,
network: state.metamask.network,
provider: state.metamask.provider,
+ conversionRate: state.metamask.conversionRate,
}
}
@@ -38,7 +39,7 @@ function ConfirmTxScreen () {
ConfirmTxScreen.prototype.render = function () {
const props = this.props
const { network, provider, unapprovedTxs,
- unapprovedMsgs, unapprovedPersonalMsgs } = props
+ unapprovedMsgs, unapprovedPersonalMsgs, conversionRate } = props
var unconfTxList = txHelper(unapprovedTxs, unapprovedMsgs, unapprovedPersonalMsgs, network)
@@ -102,6 +103,7 @@ ConfirmTxScreen.prototype.render = function () {
selectedAddress: props.selectedAddress,
accounts: props.accounts,
identities: props.identities,
+ conversionRate,
// Actions
buyEth: this.buyEth.bind(this, txParams.from || props.selectedAddress),
sendTransaction: this.sendTransaction.bind(this, txData),