2021-02-04 19:15:23 +01:00
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import Button from '../../../components/ui/button';
|
2018-09-12 02:32:37 +02:00
|
|
|
|
|
|
|
export default class InfoTab extends PureComponent {
|
|
|
|
state = {
|
|
|
|
version: global.platform.getVersion(),
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-09-12 02:32:37 +02:00
|
|
|
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-09-12 02:32:37 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderInfoLinks() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
2018-09-12 02:32:37 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="settings-page__content-item settings-page__content-item--without-height">
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="info-tab__link-header">{t('links')}</div>
|
2018-09-12 02:32:37 +02:00
|
|
|
<div className="info-tab__link-item">
|
2020-08-19 18:41:56 +02:00
|
|
|
<Button
|
|
|
|
type="link"
|
2018-09-12 02:32:37 +02:00
|
|
|
href="https://metamask.io/privacy.html"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-08-19 18:41:56 +02:00
|
|
|
className="info-tab__link-text"
|
2018-09-12 02:32:37 +02:00
|
|
|
>
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('privacyMsg')}
|
2020-08-19 18:41:56 +02:00
|
|
|
</Button>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
<div className="info-tab__link-item">
|
2020-08-19 18:41:56 +02:00
|
|
|
<Button
|
|
|
|
type="link"
|
2018-09-12 02:32:37 +02:00
|
|
|
href="https://metamask.io/terms.html"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-08-19 18:41:56 +02:00
|
|
|
className="info-tab__link-text"
|
2018-09-12 02:32:37 +02:00
|
|
|
>
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('terms')}
|
2020-08-19 18:41:56 +02:00
|
|
|
</Button>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
<div className="info-tab__link-item">
|
2020-08-19 18:41:56 +02:00
|
|
|
<Button
|
|
|
|
type="link"
|
2018-09-12 02:32:37 +02:00
|
|
|
href="https://metamask.io/attributions.html"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-08-19 18:41:56 +02:00
|
|
|
className="info-tab__link-text"
|
2018-09-12 02:32:37 +02:00
|
|
|
>
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('attributions')}
|
2020-08-19 18:41:56 +02:00
|
|
|
</Button>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
<hr className="info-tab__separator" />
|
|
|
|
<div className="info-tab__link-item">
|
2020-08-19 18:41:56 +02:00
|
|
|
<Button
|
|
|
|
type="link"
|
2018-09-12 02:32:37 +02:00
|
|
|
href="https://support.metamask.io"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-08-19 18:41:56 +02:00
|
|
|
className="info-tab__link-text"
|
2018-09-12 02:32:37 +02:00
|
|
|
>
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('supportCenter')}
|
2020-08-19 18:41:56 +02:00
|
|
|
</Button>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
<div className="info-tab__link-item">
|
2020-08-19 18:41:56 +02:00
|
|
|
<Button
|
|
|
|
type="link"
|
2018-09-12 02:32:37 +02:00
|
|
|
href="https://metamask.io/"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-08-19 18:41:56 +02:00
|
|
|
className="info-tab__link-text"
|
2018-09-12 02:32:37 +02:00
|
|
|
>
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('visitWebSite')}
|
2020-08-19 18:41:56 +02:00
|
|
|
</Button>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
<div className="info-tab__link-item">
|
2020-08-19 18:41:56 +02:00
|
|
|
<Button
|
|
|
|
type="link"
|
2020-07-29 23:05:19 +02:00
|
|
|
href="https://metamask.zendesk.com/hc/en-us/requests/new"
|
2018-09-12 02:32:37 +02:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2020-08-19 18:41:56 +02:00
|
|
|
className="info-tab__link-text"
|
2018-09-12 02:32:37 +02:00
|
|
|
>
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('contactUs')}
|
2020-08-19 18:41:56 +02:00
|
|
|
</Button>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-09-12 02:32:37 +02:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { t } = this.context;
|
2018-09-12 02:32:37 +02:00
|
|
|
|
|
|
|
return (
|
2019-03-25 17:13:23 +01:00
|
|
|
<div className="settings-page__body">
|
2018-09-12 02:32:37 +02:00
|
|
|
<div className="settings-page__content-row">
|
|
|
|
<div className="settings-page__content-item settings-page__content-item--without-height">
|
|
|
|
<div className="info-tab__item">
|
|
|
|
<div className="info-tab__version-header">
|
2020-11-03 00:41:28 +01:00
|
|
|
{t('metamaskVersion')}
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
<div className="info-tab__version-number">
|
2020-11-03 00:41:28 +01:00
|
|
|
{this.state.version}
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="info-tab__item">
|
2021-06-14 18:37:21 +02:00
|
|
|
<div className="info-tab__about">{t('builtAroundTheWorld')}</div>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-03 00:41:28 +01:00
|
|
|
{this.renderInfoLinks()}
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
2021-01-14 14:20:44 +01:00
|
|
|
<div className="info-tab__logo-wrapper">
|
|
|
|
<img src="images/info-logo.png" className="info-tab__logo" alt="" />
|
|
|
|
</div>
|
2018-09-12 02:32:37 +02:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-09-12 02:32:37 +02:00
|
|
|
}
|
|
|
|
}
|