diff --git a/web/app/[locale]/terms/Content.tsx b/web/app/[locale]/terms/Content.tsx new file mode 100644 index 0000000..c195e2a --- /dev/null +++ b/web/app/[locale]/terms/Content.tsx @@ -0,0 +1,22 @@ +"use client"; + +import ReactMarkdown from "react-markdown"; + +export const TermsContent = ({ + terms, + gdpr, +}: { + terms: string; + gdpr: string; +}) => { + return ( + <> + + {terms} + + + {gdpr} + + + ); +}; diff --git a/web/app/[locale]/terms/page.tsx b/web/app/[locale]/terms/page.tsx index d1ff971..5aa773d 100644 --- a/web/app/[locale]/terms/page.tsx +++ b/web/app/[locale]/terms/page.tsx @@ -1,10 +1,10 @@ -import ReactMarkdown from 'react-markdown'; import Link from 'next/link'; import { fetchAPI } from '@/lib/api'; import { StrapiBaseType } from '@/utils/models'; import { useRouter } from 'next/navigation'; import { getTranslation } from '@/utils/translationHelper'; +import { TermsContent } from './Content'; export const dynamic = 'force-dynamic'; type Fields = StrapiBaseType<{ terms: string; @@ -37,8 +37,7 @@ const Terms = async ({params: {locale}}: Props) => { const router = useRouter(); return (
- {content.attributes.terms} - {content.attributes.gdpr} +
{translation.back}