aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/account-list-item.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-19 10:09:26 +0800
committerDan <danjm.com@gmail.com>2017-10-20 03:00:54 +0800
commit332c7441b656ec82ebfba863e3feb4dbf365d67b (patch)
tree2ea0aece624fe6df97924c38a739efb302fffe79 /ui/app/components/send/account-list-item.js
parent59015cccef72210f828b344aaedde9b8dd31be3b (diff)
downloadtangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar
tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.gz
tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.bz2
tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.lz
tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.xz
tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.zst
tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.zip
Get currency from state in account details, send and confirm screens.
Diffstat (limited to 'ui/app/components/send/account-list-item.js')
-rw-r--r--ui/app/components/send/account-list-item.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/send/account-list-item.js b/ui/app/components/send/account-list-item.js
index 64acde767..0938f4cad 100644
--- a/ui/app/components/send/account-list-item.js
+++ b/ui/app/components/send/account-list-item.js
@@ -4,7 +4,7 @@ const inherits = require('util').inherits
const connect = require('react-redux').connect
const Identicon = require('../identicon')
const CurrencyDisplay = require('./currency-display')
-const { conversionRateSelector } = require('../../selectors')
+const { conversionRateSelector, getCurrentCurrency } = require('../../selectors')
inherits(AccountListItem, Component)
function AccountListItem () {
@@ -13,7 +13,8 @@ function AccountListItem () {
function mapStateToProps(state) {
return {
- conversionRate: conversionRateSelector(state)
+ conversionRate: conversionRateSelector(state),
+ currentCurrency: getCurrentCurrency(state),
}
}
@@ -25,6 +26,7 @@ AccountListItem.prototype.render = function () {
handleClick,
icon = null,
conversionRate,
+ currentCurrency,
} = this.props
const { name, address, balance } = account
@@ -52,10 +54,9 @@ AccountListItem.prototype.render = function () {
h(CurrencyDisplay, {
primaryCurrency: 'ETH',
- convertedCurrency: 'USD',
+ convertedCurrency: currentCurrency,
value: balance,
conversionRate,
- convertedPrefix: '$',
readOnly: true,
className: 'account-list-item__account-balances',
primaryBalanceClassName: 'account-list-item__account-primary-balance',