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