diff --git a/frontend/src/components/footer.tsx b/frontend/src/components/footer.tsx index 90ae9adc..577428ac 100644 --- a/frontend/src/components/footer.tsx +++ b/frontend/src/components/footer.tsx @@ -2,6 +2,7 @@ import Link from 'next/link'; import { Copyright } from 'lucide-react'; +import { EXTERNAL_LINKS } from '@/constants/external-links'; import { PAGES } from '@/constants/pages'; import { useGetContactDetail } from '@/types/generated/contact-detail'; @@ -50,10 +51,20 @@ const Footer: React.FC = () => { SkyTruth {currentYear} - + Privacy policy - + Terms of use diff --git a/frontend/src/constants/external-links.ts b/frontend/src/constants/external-links.ts new file mode 100644 index 00000000..269f85a5 --- /dev/null +++ b/frontend/src/constants/external-links.ts @@ -0,0 +1,4 @@ +export const EXTERNAL_LINKS = { + privacyPolicy: 'https://skytruth.org/privacy-policy/', + termsOfUse: 'https://skytruth.org/terms-of-service/', +}; diff --git a/frontend/src/constants/pages.ts b/frontend/src/constants/pages.ts index aeb0ba5c..0b29e00f 100644 --- a/frontend/src/constants/pages.ts +++ b/frontend/src/constants/pages.ts @@ -4,6 +4,4 @@ export const PAGES = { knowledgeHub: '/knowledge-hub', contact: '/contact', about: '/about', - privacyPolicy: '/privacy-policy', - termsOfUse: '/terms-of-use', }; diff --git a/frontend/src/containers/contact/form/index.tsx b/frontend/src/containers/contact/form/index.tsx index 26c640a7..66d9a4db 100644 --- a/frontend/src/containers/contact/form/index.tsx +++ b/frontend/src/containers/contact/form/index.tsx @@ -26,6 +26,7 @@ import { SelectValue, } from '@/components/ui/select'; import { Textarea } from '@/components/ui/textarea'; +import { EXTERNAL_LINKS } from '@/constants/external-links'; const CATEGORY_OPTIONS = [ { @@ -226,7 +227,7 @@ const ContactUsForm = (): JSX.Element => { By submitting this form you agree with processing your personal data in accordance with the{' '} ( - - } - > - - Privacy Policy - - On this page you will find our Privacy Policy and Cookie Policy. - - - -); - -export default PrivacyPolicy; diff --git a/frontend/src/pages/terms-of-use.tsx b/frontend/src/pages/terms-of-use.tsx deleted file mode 100644 index 085b5399..00000000 --- a/frontend/src/pages/terms-of-use.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import Cta from '@/components/static-pages/cta'; -import Section from '@/components/static-pages/section'; -import { PAGES } from '@/constants/pages'; -import Layout, { Content } from '@/layouts/static-page'; - -const PrivacyPolicy: React.FC = () => ( - - } - > - - Terms of Use - - On this page you will find our Terms of Use. - - - -); - -export default PrivacyPolicy;
On this page you will find our Privacy Policy and Cookie Policy.
On this page you will find our Terms of Use.