Updated group sorting in frontend
• Updated: - group sorting in frontend
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user