Fix annoying hierarchy error with Yrbl

`<div>` cannot be a descendend of `<p>`, and `{subtitle}`s sometimes need to have `<div>`s.

Just switch from `<p>` to `<div>`, and let the client decide when the actual text paragraphs are.
This commit is contained in:
infinite-persistence 2021-11-17 10:25:07 +08:00
parent abbeb45d17
commit ac93b379a9
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -41,7 +41,7 @@ export default class extends React.PureComponent<Props> {
{(title || subtitle) && (
<div className="yrbl__content">
<h2 className="section__title">{title}</h2>
<p className="section__subtitle">{subtitle}</p>
<div className="section__subtitle">{subtitle}</div>
</div>
)}
{actions}