More migration to coreActions

This commit is contained in:
James Barnsley
2017-08-02 21:11:22 +12:00
parent 0c134459ea
commit 48c37b3ddf
9 changed files with 23 additions and 19 deletions

View File

@ -60,7 +60,7 @@ class DiscoverCategories extends React.Component{
const mapStateToProps = (state, ownProps) => {
return {
categories: state.ui.categories,
categories: state.core.categories,
load_queue: state.ui.load_queue
}
}

View File

@ -84,7 +84,7 @@ const mapStateToProps = (state, ownProps) => {
return {
load_queue: state.ui.load_queue,
playlists: state.core.playlists,
category: (state.ui.categories && typeof(state.ui.categories['category:'+ownProps.params.id]) !== 'undefined' ? state.ui.categories['category:'+ownProps.params.id] : false )
category: (state.core.categories && state.core.categories['category:'+ownProps.params.id] !== undefined ? state.core.categories['category:'+ownProps.params.id] : false )
}
}

View File

@ -129,9 +129,9 @@ const mapStateToProps = (state, ownProps) => {
return {
load_queue: state.ui.load_queue,
albums: state.core.albums,
new_releases: state.ui.new_releases,
new_releases_more: state.ui.new_releases_more,
new_releases_total: state.ui.new_releases_total
new_releases: state.core.new_releases,
new_releases_more: state.core.new_releases_more,
new_releases_total: state.core.new_releases_total
}
}

View File

@ -267,7 +267,7 @@ const mapStateToProps = (state, ownProps) => {
albums: (state.core.albums ? state.core.albums : []),
artists: (state.core.artists ? state.core.artists : []),
tracks: (state.core.tracks ? state.core.tracks : []),
genres: (state.ui.genres ? state.ui.genres : []),
genres: (state.core.genres ? state.core.genres : []),
authorized: state.spotify.authorized,
load_queue: state.ui.load_queue,
quick_search_results: (state.spotify.quick_search_results ? state.spotify.quick_search_results : {artists: [], tracks: []}),