mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
fix linting
This commit is contained in:
parent
a01349f05d
commit
d6da78db95
1 changed files with 7 additions and 6 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue