Updated group timelines and sorting
• Updated: - group timelines and sorting
This commit is contained in:
@@ -24,8 +24,8 @@ const mapStateToProps = (state) => ({
|
||||
})
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
onSort(sort, options) {
|
||||
dispatch(setGroupTimelineSort(sort, options))
|
||||
onSort(sort) {
|
||||
dispatch(setGroupTimelineSort(sort))
|
||||
dispatch(closePopover())
|
||||
},
|
||||
onClosePopover: () => dispatch(closePopover()),
|
||||
@@ -46,7 +46,7 @@ class GroupTimelineSortOptionsPopover extends PureComponent {
|
||||
}
|
||||
|
||||
handleOnClick = (type) => {
|
||||
this.props.onSort(type, this.props.options)
|
||||
this.props.onSort(type)
|
||||
}
|
||||
|
||||
handleOnClosePopover = () => {
|
||||
|
||||
@@ -24,8 +24,8 @@ const mapStateToProps = (state) => ({
|
||||
})
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
onSort(sort, options) {
|
||||
dispatch(setGroupTimelineTopSort(sort, options))
|
||||
onSort(sort) {
|
||||
dispatch(setGroupTimelineTopSort(sort))
|
||||
dispatch(closePopover())
|
||||
},
|
||||
onClosePopover: () => dispatch(closePopover()),
|
||||
@@ -42,11 +42,10 @@ class GroupTimelineSortTopOptionsPopover extends PureComponent {
|
||||
isXS: PropTypes.bool,
|
||||
onClosePopover: PropTypes.func.isRequired,
|
||||
onSort: PropTypes.func.isRequired,
|
||||
options: PropTypes.object.isRequired,
|
||||
}
|
||||
|
||||
handleOnClick = (type) => {
|
||||
this.props.onSort(type, this.props.options)
|
||||
this.props.onSort(type)
|
||||
}
|
||||
|
||||
handleOnClosePopover = () => {
|
||||
|
||||
Reference in New Issue
Block a user