Change when ads display in WordList
This commit is contained in:
parent
47a9c96c76
commit
3b275ca765
|
@ -37,13 +37,12 @@ export class WordsList extends Component {
|
|||
{this.props.words
|
||||
&& this.props.words.map((word, index) => {
|
||||
return (
|
||||
<div>
|
||||
{index % adsEveryXWords == 0
|
||||
&& <LazyLoader lazyLoad={ loadAd } />
|
||||
<div key={ `word_${word.id}` }>
|
||||
{index % adsEveryXWords == 1
|
||||
&& <LazyLoader key={ index } lazyLoad={ loadAd } />
|
||||
}
|
||||
|
||||
<WordDisplay key={ `word_${word.id}` }
|
||||
word={ word }
|
||||
<WordDisplay word={ word }
|
||||
updateDisplay={ this.props.updateDisplay } />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue