first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
|
||||
function reducer( state = { scheme: '' }, action ) {
|
||||
|
||||
switch ( action.type ) {
|
||||
case 'UPDATE_SCHEME':
|
||||
return {
|
||||
...state,
|
||||
scheme: action.scheme,
|
||||
};
|
||||
// no default
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
export default reducer;
|
||||
Reference in New Issue
Block a user