🐛 Supprime une erreur React sur la validité du DOM

> Warning: validateDOMNesting(...): <h3> cannot appear as a descendant of <p>.
pull/1538/head
Maxime Quandalle 2021-05-07 09:55:15 +02:00
parent 82bb1d600b
commit 0309404375
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
border-radius: 15px;
}
.ui__.banner p {
.ui__.banner .banner-content {
flex-grow: 1;
}

View File

@ -25,7 +25,7 @@ export default function Banner({
<Animate.fadeIn>
<div className="ui__ banner">
{icon && emoji(icon)}
<p>{children}</p>
<div className="ui__ banner-content">{children}</div>
</div>
</Animate.fadeIn>
) : null