From ce747d73a86562a831f0e56bfc2e6d1e6eb85d44 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Mon, 15 Jan 2024 15:40:53 +0100 Subject: [PATCH] fix: remove privacy policy link (#297) The link is too visible and also only in Italian. Besides, the data stays on the client side. --- src/app/components/Head.tsx | 9 --------- src/app/contents/constants.ts | 1 - src/i18n/translations.json | 2 -- 3 files changed, 12 deletions(-) diff --git a/src/app/components/Head.tsx b/src/app/components/Head.tsx index 177acc23..97837026 100644 --- a/src/app/components/Head.tsx +++ b/src/app/components/Head.tsx @@ -1,6 +1,5 @@ import { repositoryUrl, - privacyPolicyUrl, } from "../contents/constants"; import { useTranslation } from "react-i18next"; @@ -46,14 +45,6 @@ export const Head = (): JSX.Element => {
{t("editor.title")}
- - {t("editor.privacypolicy")} - {t("editor.needhelp")} diff --git a/src/app/contents/constants.ts b/src/app/contents/constants.ts index fa664691..96e840bf 100644 --- a/src/app/contents/constants.ts +++ b/src/app/contents/constants.ts @@ -8,7 +8,6 @@ export const { // eslint-disable-next-line no-undef } = process.env; -export const privacyPolicyUrl = `https://developers.italia.it/it/privacy-policy`; export const repositoryUrl = `https://docs.italia.it/italia/developers-italia/publiccodeyml/it/master/`; export const versionsUrl = `https://api.github.com/repos/${REPOSITORY}/contents/version`; export const SAMPLE_YAML_URL = `https://raw.githubusercontent.com/italia/publiccode-editor/master/publiccode.yml`; diff --git a/src/i18n/translations.json b/src/i18n/translations.json index 26d15c37..1a6c9fcf 100644 --- a/src/i18n/translations.json +++ b/src/i18n/translations.json @@ -4,7 +4,6 @@ "editor": { "cancel": "Cancel", "title": "publiccode.yml Editor", - "privacypolicy": "Privacy policy", "needhelp": "Need Help?", "lastgeneration": "Last generation", "addlanguage": "+ Add language", @@ -54,7 +53,6 @@ "editor": { "cancel": "Annulla", "title": "publiccode.yml Editor", - "privacypolicy": "Privacy policy", "needhelp": "Aiuto?", "lastgeneration": "Ultimo aggiornamento", "addlanguage": "+ Aggiungi lingua",