Merge from git
This commit is contained in:
@@ -2,14 +2,21 @@ import { watchedCasesActionTypes } from "./action";
|
||||
|
||||
const watchedCasesInitialState = {
|
||||
watchedCases: {},
|
||||
watchedCasesDetails: {},
|
||||
};
|
||||
|
||||
export default function reducer(state = watchedCasesInitialState, action) {
|
||||
switch (action.type) {
|
||||
case watchedCasesActionTypes.SETWATCHEDCASES:
|
||||
return {
|
||||
...state,
|
||||
watchedCases: action.watchedCases,
|
||||
};
|
||||
case watchedCasesActionTypes.SETWATCHEDCASESDETAILS:
|
||||
return {
|
||||
...state,
|
||||
watchedCasesDetails: action.watchedCasesDetails,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user