Updated group timelines and sorting

• Updated:
- group timelines and sorting
This commit is contained in:
mgabdev
2020-08-07 17:59:39 -05:00
parent c725b37a39
commit 57d27420ca
8 changed files with 222 additions and 69 deletions

View File

@@ -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 = () => {

View File

@@ -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 = () => {