From d46f711b5947f36c829706dab6553acd7a630138 Mon Sep 17 00:00:00 2001 From: Marvin Sextro Date: Tue, 27 Jul 2021 03:09:51 +0200 Subject: [PATCH] Add short version of privacy policy --- components/Check.tsx | 20 ++++++++++++++++++++ components/Form.tsx | 8 ++++++++ pages/imprint.tsx | 2 +- pages/privacy.tsx | 18 +++++++++--------- public/locales/de/index.yml | 5 ++++- public/locales/el/index.yml | 6 +++--- public/locales/en/index.yml | 5 ++++- public/locales/fi/index.yml | 5 ++++- public/locales/fr/index.yml | 3 +++ public/locales/it/index.yml | 5 ++++- public/locales/nl/index.yml | 5 ++++- 11 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 components/Check.tsx diff --git a/components/Check.tsx b/components/Check.tsx new file mode 100644 index 0000000..cd7a3f3 --- /dev/null +++ b/components/Check.tsx @@ -0,0 +1,20 @@ +import {useTranslation} from 'next-i18next'; + +interface CheckProps { + text: string; +} + +function Check(props: CheckProps): JSX.Element { + const { t } = useTranslation(["index"]); + + return ( +
  • + + + + {props.text} +
  • + ) +} + +export default Check; \ No newline at end of file diff --git a/components/Form.tsx b/components/Form.tsx index e053b42..7cf46e7 100644 --- a/components/Form.tsx +++ b/components/Form.tsx @@ -7,6 +7,7 @@ import Link from 'next/link'; import Card from "./Card"; import Alert from "./Alert"; +import Check from './Check'; import {PayloadBody} from "../src/payload"; import {getPayloadBodyFromFile, getPayloadBodyFromQR} from "../src/process"; import {PassData} from "../src/pass"; @@ -238,6 +239,13 @@ function Form(): JSX.Element { .

    +
    + +