diff options
author | Dan <danjm.com@gmail.com> | 2018-03-16 08:29:45 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-16 08:29:45 +0800 |
commit | 5fe0be722b6514692a68e920ee8058c5d572237d (patch) | |
tree | 58da5c62f17cbd0160d24e44918aa34b4ee23300 /ui/app/components/modals/hide-token-confirmation-modal.js | |
parent | eb5a84975b490664aa6238be6ceab3d4749167ee (diff) | |
download | tangerine-wallet-browser-5fe0be722b6514692a68e920ee8058c5d572237d.tar.gz tangerine-wallet-browser-5fe0be722b6514692a68e920ee8058c5d572237d.tar.zst tangerine-wallet-browser-5fe0be722b6514692a68e920ee8058c5d572237d.zip |
Handle i18n with redux.
Diffstat (limited to 'ui/app/components/modals/hide-token-confirmation-modal.js')
-rw-r--r-- | ui/app/components/modals/hide-token-confirmation-modal.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/app/components/modals/hide-token-confirmation-modal.js b/ui/app/components/modals/hide-token-confirmation-modal.js index efd472cf3..a6cf2889f 100644 --- a/ui/app/components/modals/hide-token-confirmation-modal.js +++ b/ui/app/components/modals/hide-token-confirmation-modal.js @@ -1,10 +1,10 @@ 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 Identicon = require('../identicon') -const t = global.getMessage +const t = require('../../../i18n-helper').getMessage function mapStateToProps (state) { return { @@ -42,7 +42,7 @@ HideTokenConfirmationModal.prototype.render = function () { h('div.hide-token-confirmation__container', { }, [ h('div.hide-token-confirmation__title', {}, [ - t('hideTokenPrompt'), + t(this.props.localeMessages, 'hideTokenPrompt'), ]), h(Identicon, { @@ -55,19 +55,19 @@ HideTokenConfirmationModal.prototype.render = function () { h('div.hide-token-confirmation__symbol', {}, symbol), h('div.hide-token-confirmation__copy', {}, [ - t('readdToken'), + t(this.props.localeMessages, 'readdToken'), ]), h('div.hide-token-confirmation__buttons', {}, [ h('button.btn-cancel.hide-token-confirmation__button.allcaps', { onClick: () => hideModal(), }, [ - t('cancel'), + t(this.props.localeMessages, 'cancel'), ]), h('button.btn-clear.hide-token-confirmation__button.allcaps', { onClick: () => hideToken(address), }, [ - t('hide'), + t(this.props.localeMessages, 'hide'), ]), ]), ]), |