mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 23:57:55 -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={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>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue