aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--development/bundle.js.tmp-browserify-196882474661173700880
-rw-r--r--ui/app/components/balance-component.js7
-rw-r--r--ui/app/components/transaction-list/transaction-list.component.js3
3 files changed, 5 insertions, 5 deletions
diff --git a/development/bundle.js.tmp-browserify-19688247466117370088 b/development/bundle.js.tmp-browserify-19688247466117370088
deleted file mode 100644
index e69de29bb..000000000
--- a/development/bundle.js.tmp-browserify-19688247466117370088
+++ /dev/null
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),
}
}
diff --git a/ui/app/components/transaction-list/transaction-list.component.js b/ui/app/components/transaction-list/transaction-list.component.js
index 79d9d1445..c864fea3b 100644
--- a/ui/app/components/transaction-list/transaction-list.component.js
+++ b/ui/app/components/transaction-list/transaction-list.component.js
@@ -45,8 +45,7 @@ export default class TransactionList extends PureComponent {
renderTransactions () {
const { t } = this.context
- const { pendingTransactions = [], completedTransactions = [], assetImages } = this.props
- console.log('REMDERING FROM TX LIST', assetImages)
+ const { pendingTransactions = [], completedTransactions = [] } = this.props
return (
<div className="transaction-list__transactions">
{