mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add sort by filter to post list (#271)
This commit is contained in:
committed by
GitHub
parent
fadd577db8
commit
9c5553cc32
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user