balance components using selectors

feature/default_network_editable
Esteban MIno 6 years ago
parent 63397047cf
commit 165a966a2a
  1. 0
      development/bundle.js.tmp-browserify-19688247466117370088
  2. 7
      ui/app/components/balance-component.js
  3. 3
      ui/app/components/transaction-list/transaction-list.component.js

@ -5,6 +5,7 @@ const inherits = require('util').inherits
const TokenBalance = require('./token-balance') const TokenBalance = require('./token-balance')
const Identicon = require('./identicon') const Identicon = require('./identicon')
import CurrencyDisplay from './currency-display' import CurrencyDisplay from './currency-display'
const { getAssetImages, conversionRateSelector, getCurrentCurrency} = require('../selectors')
const { formatBalance, generateBalanceObject } = require('../util') const { formatBalance, generateBalanceObject } = require('../util')
@ -19,9 +20,9 @@ function mapStateToProps (state) {
return { return {
account, account,
network, network,
conversionRate: state.metamask.conversionRate, conversionRate: conversionRateSelector(state),
currentCurrency: state.metamask.currentCurrency, currentCurrency: getCurrentCurrency(state),
assetImages: state.metamask.assetImages, assetImages: getAssetImages(state),
} }
} }

@ -45,8 +45,7 @@ export default class TransactionList extends PureComponent {
renderTransactions () { renderTransactions () {
const { t } = this.context const { t } = this.context
const { pendingTransactions = [], completedTransactions = [], assetImages } = this.props const { pendingTransactions = [], completedTransactions = [] } = this.props
console.log('REMDERING FROM TX LIST', assetImages)
return ( return (
<div className="transaction-list__transactions"> <div className="transaction-list__transactions">
{ {

Loading…
Cancel
Save