🐛 Supprime une erreur React sur la validité du DOM
> Warning: validateDOMNesting(...): <h3> cannot appear as a descendant of <p>.pull/1538/head
parent
82bb1d600b
commit
0309404375
|
@ -21,7 +21,7 @@
|
|||
border-radius: 15px;
|
||||
}
|
||||
|
||||
.ui__.banner p {
|
||||
.ui__.banner .banner-content {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue