From 7d034800d64a44f70cd28a839a479a36664f03a1 Mon Sep 17 00:00:00 2001 From: gbrochar Date: Mon, 30 Nov 2020 17:00:56 +0100 Subject: [PATCH] remove dangerouslySetInnerHtml --- src/client/Footer.tsx | 6 ++---- src/client/Root.tsx | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/client/Footer.tsx b/src/client/Footer.tsx index 4d934a6..1d965a5 100644 --- a/src/client/Footer.tsx +++ b/src/client/Footer.tsx @@ -7,7 +7,7 @@ interface Link { interface Card { title: string; - description: string; + description: any; links: Array; } @@ -31,9 +31,7 @@ export default function Footer(

{elem.title}

-

+

{elem.description}

{elem.links.map((link, i) =>
diff --git a/src/client/Root.tsx b/src/client/Root.tsx index d969e57..28c2e78 100644 --- a/src/client/Root.tsx +++ b/src/client/Root.tsx @@ -88,11 +88,11 @@ export default function Root() { ], }, { title: 'Nous contacter', - description: ` + description:
  • curious.roamers@gmail.com
  • 06 37 11 28 22
  • -
`, + , links: [ { to: '/contact',