-
Notifications
You must be signed in to change notification settings - Fork 1
#67 delete activities #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
833aaf5
001a70d
6b9ef0b
14e25b8
2d40594
e330c6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a | |
| case ActivityManagementActionTypes.DELETE_ACTIVITY: { | ||
| return { | ||
| ...state, | ||
| isLoading: true, | ||
| message: 'Activity removed successfully!', | ||
|
||
| }; | ||
| } | ||
|
|
@@ -71,6 +72,14 @@ export function activityManagementReducer(state: ActivityState = initialState, a | |
| message: 'Activity removed successfully!', | ||
| }; | ||
| } | ||
|
|
||
| case ActivityManagementActionTypes.DELETE_ACTIVITY_FAIL: { | ||
| return { | ||
| data: [], | ||
| isLoading: false, | ||
| message: 'Something went wrong creating activities!', | ||
|
||
| }; | ||
| } | ||
| default: | ||
| return state; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.