From 0309404375f57219ca0421a6ad370b7beed58710 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Fri, 7 May 2021 09:55:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Supprime=20une=20erreur=20React?= =?UTF-8?q?=20sur=20la=20validit=C3=A9=20du=20DOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Warning: validateDOMNesting(...):

cannot appear as a descendant of

. --- mon-entreprise/source/components/Banner.css | 2 +- mon-entreprise/source/components/Banner.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mon-entreprise/source/components/Banner.css b/mon-entreprise/source/components/Banner.css index 5b4e39249..038bd9211 100644 --- a/mon-entreprise/source/components/Banner.css +++ b/mon-entreprise/source/components/Banner.css @@ -21,7 +21,7 @@ border-radius: 15px; } -.ui__.banner p { +.ui__.banner .banner-content { flex-grow: 1; } diff --git a/mon-entreprise/source/components/Banner.tsx b/mon-entreprise/source/components/Banner.tsx index aaa875770..029440679 100644 --- a/mon-entreprise/source/components/Banner.tsx +++ b/mon-entreprise/source/components/Banner.tsx @@ -25,7 +25,7 @@ export default function Banner({

{icon && emoji(icon)} -

{children}

+
{children}
) : null