mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-06-04 00:06:39 +02:00
Change when ads display in WordList
This commit is contained in:
parent
47a9c96c76
commit
3b275ca765
1 changed files with 4 additions and 5 deletions
|
@ -37,13 +37,12 @@ export class WordsList extends Component {
|
||||||
{this.props.words
|
{this.props.words
|
||||||
&& this.props.words.map((word, index) => {
|
&& this.props.words.map((word, index) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div key={ `word_${word.id}` }>
|
||||||
{index % adsEveryXWords == 0
|
{index % adsEveryXWords == 1
|
||||||
&& <LazyLoader lazyLoad={ loadAd } />
|
&& <LazyLoader key={ index } lazyLoad={ loadAd } />
|
||||||
}
|
}
|
||||||
|
|
||||||
<WordDisplay key={ `word_${word.id}` }
|
<WordDisplay word={ word }
|
||||||
word={ word }
|
|
||||||
updateDisplay={ this.props.updateDisplay } />
|
updateDisplay={ this.props.updateDisplay } />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue