aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts/new-account/index.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-28 09:41:45 +0800
committerGitHub <noreply@github.com>2018-03-28 09:41:45 +0800
commit0582fdb617a23cc56e9e08460f09d86769599fc1 (patch)
tree5daf844ac1fd0c9d1f683b479184509ebb96c850 /ui/app/accounts/new-account/index.js
parentb6b18339e2de92afd2fb5364ec5bc4c29b4d10a3 (diff)
parentb4ec68b2d4b6713e0a203df88eb4a8982c2cf2c6 (diff)
downloadtangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.gz
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.bz2
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.lz
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.xz
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.tar.zst
tangerine-wallet-browser-0582fdb617a23cc56e9e08460f09d86769599fc1.zip
Merge pull request #3609 from MetaMask/i18n-translator-redux
Handle i18n with redux.
Diffstat (limited to 'ui/app/accounts/new-account/index.js')
-rw-r--r--ui/app/accounts/new-account/index.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/app/accounts/new-account/index.js b/ui/app/accounts/new-account/index.js
index 854568c77..584016974 100644
--- a/ui/app/accounts/new-account/index.js
+++ b/ui/app/accounts/new-account/index.js
@@ -1,9 +1,8 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
-const connect = require('react-redux').connect
+const connect = require('../../metamask-connect')
const actions = require('../../actions')
-const t = require('../../../i18n')
const { getCurrentViewContext } = require('../../selectors')
const classnames = require('classnames')
@@ -46,7 +45,7 @@ AccountDetailsModal.prototype.render = function () {
h('div.new-account__header', [
- h('div.new-account__title', t('newAccount')),
+ h('div.new-account__title', this.props.t('newAccount')),
h('div.new-account__tabs', [
@@ -56,7 +55,7 @@ AccountDetailsModal.prototype.render = function () {
'new-account__tabs__unselected cursor-pointer': displayedForm !== 'CREATE',
}),
onClick: () => displayForm('CREATE'),
- }, t('createDen')),
+ }, this.props.t('createDen')),
h('div.new-account__tabs__tab', {
className: classnames('new-account__tabs__tab', {
@@ -64,7 +63,7 @@ AccountDetailsModal.prototype.render = function () {
'new-account__tabs__unselected cursor-pointer': displayedForm !== 'IMPORT',
}),
onClick: () => displayForm('IMPORT'),
- }, t('import')),
+ }, this.props.t('import')),
]),