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/keychains/hd/recover-seed/confirmation.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/keychains/hd/recover-seed/confirmation.js')
-rw-r--r-- | ui/app/keychains/hd/recover-seed/confirmation.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/app/keychains/hd/recover-seed/confirmation.js b/ui/app/keychains/hd/recover-seed/confirmation.js index 4a62c8803..f97ac66fe 100644 --- a/ui/app/keychains/hd/recover-seed/confirmation.js +++ b/ui/app/keychains/hd/recover-seed/confirmation.js @@ -4,7 +4,6 @@ const Component = require('react').Component const connect = require('../../../metamask-connect') const h = require('react-hyperscript') const actions = require('../../../actions') -const t = require('../../../../i18n') module.exports = connect(mapStateToProps)(RevealSeedConfirmation) @@ -50,13 +49,13 @@ RevealSeedConfirmation.prototype.render = function () { }, }, [ - h('h4', t('revealSeedWordsWarning')), + h('h4', this.props.t('revealSeedWordsWarning')), // confirmation h('input.large-input.letter-spacey', { type: 'password', id: 'password-box', - placeholder: t('enterPasswordConfirm'), + placeholder: this.props.t('enterPasswordConfirm'), onKeyPress: this.checkConfirmation.bind(this), style: { width: 260, @@ -92,7 +91,7 @@ RevealSeedConfirmation.prototype.render = function () { ), props.inProgress && ( - h('span.in-progress-notification', t('generatingSeed')) + h('span.in-progress-notification', this.props.t('generatingSeed')) ), ]), ]) |