remove dangerouslySetInnerHtml
This commit is contained in:
parent
338db250e1
commit
7d034800d6
|
@ -7,7 +7,7 @@ interface Link {
|
||||||
|
|
||||||
interface Card {
|
interface Card {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: any;
|
||||||
links: Array<Link>;
|
links: Array<Link>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,9 +31,7 @@ export default function Footer(
|
||||||
<h3 className='font-weight-bold'>
|
<h3 className='font-weight-bold'>
|
||||||
{elem.title}
|
{elem.title}
|
||||||
</h3>
|
</h3>
|
||||||
<p
|
<p>{elem.description}</p>
|
||||||
dangerouslySetInnerHTML=
|
|
||||||
{{__html: elem.description}}></p>
|
|
||||||
{elem.links.map((link, i) =>
|
{elem.links.map((link, i) =>
|
||||||
<div key={i}>
|
<div key={i}>
|
||||||
<a href={link.to}>
|
<a href={link.to}>
|
||||||
|
|
|
@ -88,11 +88,11 @@ export default function Root() {
|
||||||
],
|
],
|
||||||
}, {
|
}, {
|
||||||
title: 'Nous contacter',
|
title: 'Nous contacter',
|
||||||
description: `
|
description:
|
||||||
<ul>
|
<ul>
|
||||||
<li>curious.roamers@gmail.com</li>
|
<li>curious.roamers@gmail.com</li>
|
||||||
<li>06 37 11 28 22</li>
|
<li>06 37 11 28 22</li>
|
||||||
</ul>`,
|
</ul>,
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
to: '/contact',
|
to: '/contact',
|
||||||
|
|
Loading…
Reference in New Issue