Skip to content

Commit

Permalink
fix: remove privacy policy link (#297)
Browse files Browse the repository at this point in the history
The link is too visible and also only in Italian. Besides, the data
stays on the client side.
  • Loading branch information
bfabio authored Jan 15, 2024
1 parent db37ca9 commit ce747d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/app/components/Head.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
repositoryUrl,
privacyPolicyUrl,
} from "../contents/constants";
import { useTranslation } from "react-i18next";

Expand Down Expand Up @@ -46,14 +45,6 @@ export const Head = (): JSX.Element => {
<div className="content__head__title">{t("editor.title")}</div>
<div className="content__head__help">
<div>
<a
className="pr-5"
href={privacyPolicyUrl}
rel="noopener noreferrer"
target="_blank"
>
{t("editor.privacypolicy")}
</a>
<a href={repositoryUrl} rel="noopener noreferrer" target="_blank">
{t("editor.needhelp")}
</a>
Expand Down
1 change: 0 additions & 1 deletion src/app/contents/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"editor": {
"cancel": "Cancel",
"title": "publiccode.yml Editor",
"privacypolicy": "Privacy policy",
"needhelp": "Need Help?",
"lastgeneration": "Last generation",
"addlanguage": "+ Add language",
Expand Down Expand Up @@ -54,7 +53,6 @@
"editor": {
"cancel": "Annulla",
"title": "publiccode.yml Editor",
"privacypolicy": "Privacy policy",
"needhelp": "Aiuto?",
"lastgeneration": "Ultimo aggiornamento",
"addlanguage": "+ Aggiungi lingua",
Expand Down

0 comments on commit ce747d7

Please sign in to comment.