Playlist and Users data storage overhaul

This commit is contained in:
James Barnsley
2018-08-31 16:04:55 +12:00
parent 02ab0616fa
commit dbb5effbb9
21 changed files with 15035 additions and 11241 deletions

View File

@ -50,7 +50,7 @@ class ArtistGrid extends React.Component{
<GridItem
key={artist.uri}
type="artist"
item={artist}
item={helpers.collate(artist, {albums: this.props.albums})}
show_source_icon={this.props.show_source_icon}
onClick={e => {hashHistory.push(global.baseURL+'artist/'+encodeURIComponent(artist.uri))}}
lastfmActions={this.props.lastfmActions}
@ -69,7 +69,9 @@ class ArtistGrid extends React.Component{
}
const mapStateToProps = (state, ownProps) => {
return {}
return {
albums: state.core.albums
}
}
const mapDispatchToProps = (dispatch) => {