diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-03-30 07:52:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 07:52:52 +0800 |
commit | 9d4be1842e7c56e3bfde529ff555dcae8dec3dbd (patch) | |
tree | 6d52709412f407389b58ec15923fe0794f093dcf /ui/app/accounts/import/seed.js | |
parent | 5a0523cdfd50dcd4e5680134346ccfcb4bb7cbf4 (diff) | |
parent | 74f13c0a34494ab9c96db8772ea2b443ede0835b (diff) | |
download | tangerine-wallet-browser-9d4be1842e7c56e3bfde529ff555dcae8dec3dbd.tar.gz tangerine-wallet-browser-9d4be1842e7c56e3bfde529ff555dcae8dec3dbd.tar.zst tangerine-wallet-browser-9d4be1842e7c56e3bfde529ff555dcae8dec3dbd.zip |
Merge pull request #3788 from danjm/i3787-make-t-available-via-context
i18n - Removes t from props via metamask-connect; put t on context
Diffstat (limited to 'ui/app/accounts/import/seed.js')
-rw-r--r-- | ui/app/accounts/import/seed.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ui/app/accounts/import/seed.js b/ui/app/accounts/import/seed.js index 5479a6be9..d98909baa 100644 --- a/ui/app/accounts/import/seed.js +++ b/ui/app/accounts/import/seed.js @@ -1,10 +1,16 @@ const inherits = require('util').inherits const Component = require('react').Component const h = require('react-hyperscript') -const connect = require('../../metamask-connect') +const PropTypes = require('prop-types') +const connect = require('react-redux').connect + +SeedImportSubview.contextTypes = { + t: PropTypes.func, +} module.exports = connect(mapStateToProps)(SeedImportSubview) + function mapStateToProps (state) { return {} } @@ -20,10 +26,10 @@ SeedImportSubview.prototype.render = function () { style: { }, }, [ - this.props.t('pasteSeed'), + this.context.t('pasteSeed'), h('textarea'), h('br'), - h('button', this.props.t('submit')), + h('button', this.context.t('submit')), ]) ) } |