Add sort by filter to post list (#271)

This commit is contained in:
Riccardo Graziosi
2024-01-26 17:43:24 +01:00
committed by GitHub
parent fadd577db8
commit 9c5553cc32
15 changed files with 164 additions and 11 deletions

View File

@@ -25,6 +25,7 @@ import {
ChangeFiltersActionTypes,
SET_SEARCH_FILTER,
SET_POST_STATUS_FILTER,
SET_SORT_BY_FILTER,
} from '../actions/changeFilters';
import {
@@ -93,6 +94,7 @@ const postsReducer = (
case SET_SEARCH_FILTER:
case SET_POST_STATUS_FILTER:
case SET_SORT_BY_FILTER:
return {
...state,
filters: filtersReducer(state.filters, action),