Updated group sorting in frontend

• Updated:
- group sorting in frontend
This commit is contained in:
mgabdev
2020-08-06 23:19:18 -05:00
parent 6328b21186
commit f9f2744a63
10 changed files with 161 additions and 61 deletions

View File

@@ -9,6 +9,7 @@ import { fetchRelationships } from './accounts';
import {
GROUP_LIST_SORTING_TYPE_ALPHABETICAL,
GROUP_LIST_SORTING_TYPE_MOST_POPULAR,
GROUP_TIMELINE_SORTING_TYPE_TOP,
} from '../constants'
export const GROUP_FETCH_REQUEST = 'GROUP_FETCH_REQUEST';
@@ -619,16 +620,16 @@ export function groupsSort(tab, groupIds) {
}
}
export const setGroupTimelineSort = (sortValue) => (dispatch) => {
export const setGroupTimelineSort = (sortValue, options) => (dispatch, getState) => {
dispatch({
type: GROUP_TIMELINE_SORT,
sortValue,
})
}
export const setGroupTimelineTopSort = (sortValue) => (dispatch) => {
export const setGroupTimelineTopSort = (sortValue, options) => (dispatch, getState) => {
dispatch({
type: GROUP_TIMELINE_TOP_SORT,
sortValue,
})
}
}