feat: added filter options for learner posts (#340)

Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
This commit is contained in:
Muhammad Adeel Tajamul
2022-11-03 16:54:07 +05:00
committed by GitHub
parent 12dd08d97f
commit 7ced4b292c
11 changed files with 476 additions and 15 deletions

View File

@@ -61,6 +61,9 @@ const threadsSlice = createSlice({
}
state.status = RequestStatus.IN_PROGRESS;
},
clearPostsPages: (state) => {
state.pages = [];
},
fetchThreadsRequest: (state) => {
state.status = RequestStatus.IN_PROGRESS;
},
@@ -242,6 +245,7 @@ export const {
showPostEditor,
hidePostEditor,
clearRedirect,
clearPostsPages,
} = threadsSlice.actions;
export const threadsReducer = threadsSlice.reducer;