+ client: privacy policy link

Closes #393
This commit is contained in:
Ildar Kamalov 2019-04-17 15:03:25 +03:00
parent 61554ba4e0
commit f83d026c33
3 changed files with 7 additions and 1 deletions

View File

@ -50,6 +50,7 @@
"copyright": "Copyright", "copyright": "Copyright",
"homepage": "Homepage", "homepage": "Homepage",
"report_an_issue": "Report an issue", "report_an_issue": "Report an issue",
"privacy_policy": "Privacy policy",
"enable_protection": "Enable protection", "enable_protection": "Enable protection",
"enabled_protection": "Enabled protection", "enabled_protection": "Enabled protection",
"disable_protection": "Disable protection", "disable_protection": "Disable protection",

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Trans, withNamespaces } from 'react-i18next'; import { Trans, withNamespaces } from 'react-i18next';
import { REPOSITORY, LANGUAGES } from '../../helpers/constants'; import { REPOSITORY, LANGUAGES, PRIVACY_POLICY_LINK } from '../../helpers/constants';
import i18n from '../../i18n'; import i18n from '../../i18n';
import './Footer.css'; import './Footer.css';
@ -30,6 +30,9 @@ class Footer extends Component {
<a href={REPOSITORY.URL} className="footer__link" target="_blank" rel="noopener noreferrer"> <a href={REPOSITORY.URL} className="footer__link" target="_blank" rel="noopener noreferrer">
<Trans>homepage</Trans> <Trans>homepage</Trans>
</a> </a>
<a href={PRIVACY_POLICY_LINK} className="footer__link" target="_blank" rel="noopener noreferrer">
<Trans>privacy_policy</Trans>
</a>
<a href={`${REPOSITORY.URL}/issues/new`} className="btn btn-outline-primary btn-sm footer__link footer__link--report" target="_blank" rel="noopener noreferrer"> <a href={`${REPOSITORY.URL}/issues/new`} className="btn btn-outline-primary btn-sm footer__link footer__link--report" target="_blank" rel="noopener noreferrer">
<Trans>report_an_issue</Trans> <Trans>report_an_issue</Trans>
</a> </a>

View File

@ -22,6 +22,8 @@ export const REPOSITORY = {
TRACKERS_DB: 'https://github.com/AdguardTeam/AdGuardHome/tree/master/client/src/helpers/trackers/adguard.json', TRACKERS_DB: 'https://github.com/AdguardTeam/AdGuardHome/tree/master/client/src/helpers/trackers/adguard.json',
}; };
export const PRIVACY_POLICY_LINK = 'https://adguard.com/privacy/home.html';
export const LANGUAGES = [ export const LANGUAGES = [
{ {
key: 'en', key: 'en',