Fix CreateGroup state update, add info alerts

This commit is contained in:
Nathan Barber
2021-05-17 12:44:16 -04:00
parent b8dda5a088
commit 7e85b2ec3e
8 changed files with 75 additions and 31 deletions

View File

@@ -17,10 +17,6 @@ export const reducers = (state = initialState, action) => {
user_data: action.value.data,
});
// Deprecated - doesn't store pagination values
case "USER_DATA":
return Object.assign({}, state, { user_data: action.value });
// Updates the client group model data and stores the page
case "GROUPS_PAGE":
return Object.assign({}, state, {
@@ -28,10 +24,6 @@ export const reducers = (state = initialState, action) => {
groups_data: action.value.data,
});
// Deprecated - doesn't store pagination values
case "GROUPS_DATA":
return Object.assign({}, state, { groups_data: action.value });
default:
return state;
}