diff --git a/src/pages/ImprintPage.tsx b/src/pages/ImprintPage.tsx index 1cd7aee..7f06e37 100644 --- a/src/pages/ImprintPage.tsx +++ b/src/pages/ImprintPage.tsx @@ -1,6 +1,6 @@ import { useEffect } from 'react'; import { personalConfig } from '../config/personal'; -import { getTexts } from '../config/texts'; +import { useLanguage } from '../contexts/LanguageContext'; export default function ImprintPage() { const { texts: allTexts } = useLanguage(); @@ -64,7 +64,7 @@ export default function ImprintPage() {

{texts.contentLiabilityTitle}

- {texts.contentLiabilityText.map((text) => ( + {texts.contentLiabilityText.map((text: string) => (

{text}

@@ -73,7 +73,7 @@ export default function ImprintPage() {

{texts.copyrightTitle}

- {texts.copyrightText.map((text) => ( + {texts.copyrightText.map((text: string) => (

{text}

@@ -102,7 +102,7 @@ export default function ImprintPage() {

{texts.detailedPrivacyPolicy.responsibleTitle}

{texts.detailedPrivacyPolicy.responsibleText}

- {texts.detailedPrivacyPolicy.responsibleContact.split('\n').map((line) => ( + {texts.detailedPrivacyPolicy.responsibleContact.split('\n').map((line: string) => (

{line}

))}
@@ -119,7 +119,7 @@ export default function ImprintPage() {

{texts.detailedPrivacyPolicy.rightsTitle}

{texts.detailedPrivacyPolicy.rightsIntro}