Reinstating tracks (basic), fixes #173

This commit is contained in:
James Barnsley
2017-08-15 21:53:57 +12:00
parent f51e83099e
commit 5b5e4a2351
3 changed files with 30 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class LibraryTracks extends React.Component{
<Header icon="music" title="My tracks" />
<section className="content-wrapper">
{ this.props.tracks ? <TrackList tracks={this.props.tracks} /> : null }
<LazyLoadListener enabled={this.props.tracks_more} loadMore={ () => this.loadMore() }/>
<LazyLoadListener loading={this.props.tracks_more} loadMore={() => this.loadMore()}/>
</section>
</div>
);