fix linting

This commit is contained in:
caseymm 2022-04-08 11:56:18 -07:00
parent a01349f05d
commit d6da78db95

View file

@ -17,13 +17,14 @@ const TextAndMediaSnippet = props => (
<div className={classNames('text-and-media-snippet', props.className)}>
<div className="half">
<h4>{props.title}</h4>
{props.children.length > 0
? <div>
{props.children.map(function(paragraph, i){
return <p>{paragraph}</p>;
{props.children.length > 0 ?
<div>
{/* eslint-disable */}
{props.children.map((paragraph, i) => {
return <p key={i}>{paragraph}</p>;
})}
</div>
: <p>
</div> :
<p>
{props.children}
</p>
}