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={classNames('text-and-media-snippet', props.className)}>
<div className="half"> <div className="half">
<h4>{props.title}</h4> <h4>{props.title}</h4>
{props.children.length > 0 {props.children.length > 0 ?
? <div> <div>
{props.children.map(function(paragraph, i){ {/* eslint-disable */}
return <p>{paragraph}</p>; {props.children.map((paragraph, i) => {
return <p key={i}>{paragraph}</p>;
})} })}
</div> </div> :
: <p> <p>
{props.children} {props.children}
</p> </p>
} }