Refactor <FavouritedStatuses> and <BookmarkedStatuses> into TypeScript (#34356)
This commit is contained in:
parent
bdf9baa2e8
commit
6a39f00745
7 changed files with 249 additions and 234 deletions
|
|
@ -96,6 +96,7 @@ const removeOneFromList = (state, listType, status) => {
|
|||
return state.updateIn([listType, 'items'], (list) => list.delete(status.get('id')));
|
||||
};
|
||||
|
||||
/** @type {import('@reduxjs/toolkit').Reducer<typeof initialState>} */
|
||||
export default function statusLists(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case FAVOURITED_STATUSES_FETCH_REQUEST:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue