Merge pull request #7253 from bocoup/issue-7176

Fix gh-7176: Fix empty h5 elements in the homepage
This commit is contained in:
Benjamin Wheeler 2022-12-13 22:35:22 -05:00 committed by GitHub
commit 32cce60904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ const Box = props => (
<div className={classNames('box', props.className)}>
<div className="box-header">
<h4>{props.title}</h4>
<h5>{props.subtitle}</h5>
{props.subtitle ? <h5>{props.subtitle}</h5> : null}
<p>
<a
href={props.moreHref}
@ -19,9 +19,7 @@ const Box = props => (
</p>
</div>
<div className="box-content">
{props.children}
</div>
<div className="box-content">{props.children}</div>
</div>
);