Google as new provider (using Mopidy core), starting #266
This commit is contained in:
14
src/js/services/google/reducer.js
Executable file
14
src/js/services/google/reducer.js
Executable file
@ -0,0 +1,14 @@
|
||||
|
||||
export default function reducer(google = {}, action){
|
||||
switch (action.type){
|
||||
|
||||
case 'GOOGLE_SET':
|
||||
return Object.assign({}, google, action.data);
|
||||
|
||||
default:
|
||||
return google
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user