aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/settings/info.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/pages/settings/info.js')
-rw-r--r--ui/app/components/pages/settings/info.js23
1 files changed, 13 insertions, 10 deletions
diff --git a/ui/app/components/pages/settings/info.js b/ui/app/components/pages/settings/info.js
index adb2fdfcd..eb9be66e6 100644
--- a/ui/app/components/pages/settings/info.js
+++ b/ui/app/components/pages/settings/info.js
@@ -1,7 +1,6 @@
const { Component } = require('react')
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
-const connect = require('../../../metamask-connect')
class Info extends Component {
renderLogo () {
@@ -15,13 +14,13 @@ class Info extends Component {
renderInfoLinks () {
return (
h('div.settings__content-item.settings__content-item--without-height', [
- h('div.settings__info-link-header', this.props.t('links')),
+ h('div.settings__info-link-header', this.context.t('links')),
h('div.settings__info-link-item', [
h('a', {
href: 'https://metamask.io/privacy.html',
target: '_blank',
}, [
- h('span.settings__info-link', this.props.t('privacyMsg')),
+ h('span.settings__info-link', this.context.t('privacyMsg')),
]),
]),
h('div.settings__info-link-item', [
@@ -29,7 +28,7 @@ class Info extends Component {
href: 'https://metamask.io/terms.html',
target: '_blank',
}, [
- h('span.settings__info-link', this.props.t('terms')),
+ h('span.settings__info-link', this.context.t('terms')),
]),
]),
h('div.settings__info-link-item', [
@@ -37,7 +36,7 @@ class Info extends Component {
href: 'https://metamask.io/attributions.html',
target: '_blank',
}, [
- h('span.settings__info-link', this.props.t('attributions')),
+ h('span.settings__info-link', this.context.t('attributions')),
]),
]),
h('hr.settings__info-separator'),
@@ -46,7 +45,7 @@ class Info extends Component {
href: 'https://support.metamask.io',
target: '_blank',
}, [
- h('span.settings__info-link', this.props.t('supportCenter')),
+ h('span.settings__info-link', this.context.t('supportCenter')),
]),
]),
h('div.settings__info-link-item', [
@@ -54,7 +53,7 @@ class Info extends Component {
href: 'https://metamask.io/',
target: '_blank',
}, [
- h('span.settings__info-link', this.props.t('visitWebSite')),
+ h('span.settings__info-link', this.context.t('visitWebSite')),
]),
]),
h('div.settings__info-link-item', [
@@ -62,7 +61,7 @@ class Info extends Component {
target: '_blank',
href: 'mailto:help@metamask.io?subject=Feedback',
}, [
- h('span.settings__info-link', this.props.t('emailUs')),
+ h('span.settings__info-link', this.context.t('emailUs')),
]),
]),
])
@@ -82,7 +81,7 @@ class Info extends Component {
h('div.settings__info-item', [
h(
'div.settings__info-about',
- this.props.t('builtInCalifornia')
+ this.context.t('builtInCalifornia')
),
]),
]),
@@ -106,4 +105,8 @@ Info.propTypes = {
t: PropTypes.func,
}
-module.exports = connect()(Info)
+Info.contextTypes = {
+ t: PropTypes.func,
+}
+
+module.exports = Info