forked from Abdulbari/sgeUpdated
Add 'sge-frontend/' from commit '5fa787e054b25ac53edc7ff0275ea7960a709401'
git-subtree-dir: sge-frontend git-subtree-mainline:876c278ac4git-subtree-split:5fa787e054
This commit is contained in:
23
sge-frontend/src/redux/reducers/userProfileSettings/index.js
Normal file
23
sge-frontend/src/redux/reducers/userProfileSettings/index.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user