17 lines
449 B
JavaScript
17 lines
449 B
JavaScript
import { myRepresentationsActionTypes } from "./action";
|
|
|
|
const myRepresentationsInitialState = {
|
|
myRepresentations: {},
|
|
};
|
|
|
|
export default function reducer(state = myRepresentationsInitialState, action) {
|
|
switch (action.type) {
|
|
case myRepresentationsActionTypes.SETMYREPRESENTATIONS:
|
|
return {
|
|
myRepresentations: action.myRepresentations,
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
}
|