diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-05-13 03:41:31 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-05-13 03:44:51 +0800 |
commit | 19db11856bef65c38d96eb1d6084d88ab6e7eebc (patch) | |
tree | ed75d3ea84c947ea5fb838b6fb83d75eb596cca2 /ui/app/accounts | |
parent | daec667c16c9a55e6357871a82ff2b863501a393 (diff) | |
download | tangerine-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/accounts')
-rw-r--r-- | ui/app/accounts/account-list-item.js | 3 | ||||
-rw-r--r-- | ui/app/accounts/index.js | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js index 2a3c13d05..0e87af612 100644 --- a/ui/app/accounts/account-list-item.js +++ b/ui/app/accounts/account-list-item.js @@ -15,7 +15,7 @@ function AccountListItem () { } AccountListItem.prototype.render = function () { - const { identity, selectedAddress, accounts, onShowDetail } = this.props + const { identity, selectedAddress, accounts, onShowDetail, conversionRate } = this.props const checksumAddress = identity && identity.address && ethUtil.toChecksumAddress(identity.address) const isSelected = selectedAddress === identity.address @@ -52,6 +52,7 @@ AccountListItem.prototype.render = function () { }, checksumAddress), h(EthBalance, { value: account && account.balance, + conversionRate, style: { lineHeight: '7px', marginTop: '10px', diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js index 9584ebad9..5105c214b 100644 --- a/ui/app/accounts/index.js +++ b/ui/app/accounts/index.js @@ -23,6 +23,7 @@ function mapStateToProps (state) { scrollToBottom: state.appState.scrollToBottom, pending, keyrings: state.metamask.keyrings, + conversionRate: state.metamask.conversionRate, } } @@ -33,7 +34,7 @@ function AccountsScreen () { AccountsScreen.prototype.render = function () { const props = this.props - const { keyrings } = props + const { keyrings, conversionRate } = props const identityList = valuesFor(props.identities) const unapprovedTxList = valuesFor(props.unapprovedTxs) @@ -81,6 +82,7 @@ AccountsScreen.prototype.render = function () { key: `acct-panel-${identity.address}`, identity, selectedAddress: this.props.selectedAddress, + conversionRate, accounts: this.props.accounts, onShowDetail: this.onShowDetail.bind(this), pending, |