({ field, direction })
| 73 | }; |
| 74 | |
| 75 | onSort({ field, direction }) { |
| 76 | const { query, sortDirection, sortField, updateQuery } = this.props; |
| 77 | |
| 78 | const newQuery = query.sortBy( |
| 79 | field || sortField, |
| 80 | direction || sortDirection |
| 81 | ); |
| 82 | updateQuery(newQuery); |
| 83 | } |
| 84 | |
| 85 | renderSortingButtons() { |
| 86 | const { intl, sortingFields, sortDirection, sortField } = this.props; |
no test coverage detected