More migration to coreActions
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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: []}),
|
||||
|
||||
Reference in New Issue
Block a user