Artist and album following; TODO: move follow to separate component possibly

This commit is contained in:
James Barnsley
2016-11-18 10:02:05 +13:00
parent 1ffa5b62c6
commit 89cf46d47b
6 changed files with 264 additions and 150 deletions

View File

@ -134,6 +134,10 @@ export default function reducer(ui = {}, action){
})
return Object.assign({}, ui, { album: album });
case 'SPOTIFY_ALBUM_FOLLOWING':
var album = Object.assign({}, ui.album, { following: action.data })
return Object.assign({}, ui, { album: album });
/**
@ -161,6 +165,10 @@ export default function reducer(ui = {}, action){
})
return Object.assign({}, ui, { artist: artist });
case 'SPOTIFY_ARTIST_FOLLOWING':
var artist = Object.assign({}, ui.artist, { following: action.data })
return Object.assign({}, ui, { artist: artist });
/**
* Playlists