diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-04-03 01:47:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-03 01:47:24 +0800 |
commit | 6d5f1392a529c5c809d416aaebc6e3424ee55ae1 (patch) | |
tree | 7feb008f31933a579a4a9bdeb42e22c99d78597a /ui/app/components/notice.js | |
parent | 812a06ffcd9cea39453e8a59563bf1d12e17c065 (diff) | |
parent | 69a867b4a420acd4b4354aab2cc4051736a778cb (diff) | |
download | tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.tar tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.tar.gz tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.tar.bz2 tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.tar.lz tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.tar.xz tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.tar.zst tangerine-wallet-browser-6d5f1392a529c5c809d416aaebc6e3424ee55ae1.zip |
Merge branch 'master' into i18n-helper
Diffstat (limited to 'ui/app/components/notice.js')
-rw-r--r-- | ui/app/components/notice.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/components/notice.js b/ui/app/components/notice.js index a999ffd88..bb7e0814c 100644 --- a/ui/app/components/notice.js +++ b/ui/app/components/notice.js @@ -1,13 +1,19 @@ const inherits = require('util').inherits const Component = require('react').Component +const PropTypes = require('prop-types') const h = require('react-hyperscript') const ReactMarkdown = require('react-markdown') const linker = require('extension-link-enabler') const findDOMNode = require('react-dom').findDOMNode -const connect = require('../metamask-connect') +const connect = require('react-redux').connect + +Notice.contextTypes = { + t: PropTypes.func, +} module.exports = connect()(Notice) + inherits(Notice, Component) function Notice () { Component.call(this) @@ -111,7 +117,7 @@ Notice.prototype.render = function () { style: { marginTop: '18px', }, - }, this.props.t('accept')), + }, this.context.t('accept')), ]) ) } |