Merge from git
This commit is contained in:
@@ -2,14 +2,21 @@ import { myCasesActionTypes } from "./action";
|
||||
|
||||
const myCasesInitialState = {
|
||||
myCases: {},
|
||||
myCasesDetails: {},
|
||||
};
|
||||
|
||||
export default function reducer(state = myCasesInitialState, action) {
|
||||
switch (action.type) {
|
||||
case myCasesActionTypes.SETMYCASES:
|
||||
return {
|
||||
...state,
|
||||
myCases: action.myCases,
|
||||
};
|
||||
case myCasesActionTypes.SETMYCASESDETAILS:
|
||||
return {
|
||||
...state,
|
||||
myCasesDetails: action.myCasesDetails,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user