MCPcopy Create free account
hub / github.com/alephdata/aleph / mapStateToProps

Function mapStateToProps

ui/src/components/SortingBar/SortingBar.jsx:155–167  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

153}
154
155const mapStateToProps = (state, ownProps) => {
156 const { query, sortingFields } = ownProps;
157
158 if (sortingFields) {
159 const { field, direction } = query.getSort();
160
161 return {
162 sortField: field,
163 sortDirection: direction,
164 };
165 }
166 return {};
167};
168
169export default compose(connect(mapStateToProps), injectIntl)(SortingBar);

Callers

nothing calls this directly

Calls 1

getSortMethod · 0.80

Tested by

no test coverage detected