diff options
author | Dan <danjm.com@gmail.com> | 2018-03-22 08:41:47 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-22 08:41:47 +0800 |
commit | d24a0590d363dbe88d383c8faec8eb28809242f0 (patch) | |
tree | 189e54ca9ea117804c96afa551cfca8158f36974 /ui/app/components/token-list.js | |
parent | 29cc2f8ab9628d21cc32962666879c71be4e69d1 (diff) | |
download | tangerine-wallet-browser-d24a0590d363dbe88d383c8faec8eb28809242f0.tar.gz tangerine-wallet-browser-d24a0590d363dbe88d383c8faec8eb28809242f0.tar.zst tangerine-wallet-browser-d24a0590d363dbe88d383c8faec8eb28809242f0.zip |
i18n redux solution doesn't require importing t() and passing state to each t() call; t is just available on props.
Diffstat (limited to 'ui/app/components/token-list.js')
-rw-r--r-- | ui/app/components/token-list.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/app/components/token-list.js b/ui/app/components/token-list.js index 439619158..ae22f3702 100644 --- a/ui/app/components/token-list.js +++ b/ui/app/components/token-list.js @@ -5,7 +5,6 @@ const TokenTracker = require('eth-token-tracker') const TokenCell = require('./token-cell.js') const connect = require('../metamask-connect') const selectors = require('../selectors') -const t = require('../../i18n-helper').getMessage function mapStateToProps (state) { return { @@ -43,7 +42,7 @@ TokenList.prototype.render = function () { const { tokens, isLoading, error } = state if (isLoading) { - return this.message(t(this.props.localeMessages, 'loadingTokens')) + return this.message(this.props.t('loadingTokens')) } if (error) { @@ -53,7 +52,7 @@ TokenList.prototype.render = function () { padding: '80px', }, }, [ - t(this.props.localeMessages, 'troubleTokenBalances'), + this.props.t('troubleTokenBalances'), h('span.hotFix', { style: { color: 'rgba(247, 134, 28, 1)', @@ -64,7 +63,7 @@ TokenList.prototype.render = function () { url: `https://ethplorer.io/address/${userAddress}`, }) }, - }, t(this.props.localeMessages, 'here')), + }, this.props.t('here')), ]) } |