forked from Abdulbari/sgeUpdated
git-subtree-dir: sge-frontend git-subtree-mainline:876c278ac4git-subtree-split:5fa787e054
24 lines
519 B
JavaScript
24 lines
519 B
JavaScript
const initialState = {
|
|
userProfileSettings: [],
|
|
};
|
|
|
|
const userProfileSettings = (state = initialState, action) => {
|
|
switch (action.type) {
|
|
case "GET_USERPROFILESETTING":
|
|
return {
|
|
...state,
|
|
userProfileSettings: action.payload.getUserProfileSettings,
|
|
};
|
|
|
|
case "UPDATE_USERPROFILESETTING":
|
|
return {
|
|
...state,
|
|
userProfileSettings: action.payload.data,
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
};
|
|
|
|
export default userProfileSettings;
|