aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/balance-component.js
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-31 04:19:10 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-31 04:19:10 +0800
commit165a966a2a0c1a6eb03b7eb53fd0824f4437200a (patch)
tree64678fabfeb9bdb38521487c0cc12ff0a5459265 /ui/app/components/balance-component.js
parent63397047cf8ec1941dfebcec12b8d02dcb6508f2 (diff)
downloadtangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.tar
tangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.tar.gz
tangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.tar.bz2
tangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.tar.lz
tangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.tar.xz
tangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.tar.zst
tangerine-wallet-browser-165a966a2a0c1a6eb03b7eb53fd0824f4437200a.zip
balance components using selectors
Diffstat (limited to 'ui/app/components/balance-component.js')
-rw-r--r--ui/app/components/balance-component.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/components/balance-component.js b/ui/app/components/balance-component.js
index 753a27b06..d63d78c9f 100644
--- a/ui/app/components/balance-component.js
+++ b/ui/app/components/balance-component.js
@@ -5,6 +5,7 @@ const inherits = require('util').inherits
const TokenBalance = require('./token-balance')
const Identicon = require('./identicon')
import CurrencyDisplay from './currency-display'
+const { getAssetImages, conversionRateSelector, getCurrentCurrency} = require('../selectors')
const { formatBalance, generateBalanceObject } = require('../util')
@@ -19,9 +20,9 @@ function mapStateToProps (state) {
return {
account,
network,
- conversionRate: state.metamask.conversionRate,
- currentCurrency: state.metamask.currentCurrency,
- assetImages: state.metamask.assetImages,
+ conversionRate: conversionRateSelector(state),
+ currentCurrency: getCurrentCurrency(state),
+ assetImages: getAssetImages(state),
}
}