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

Function mapStateToProps

ui/src/components/CollectionIndex/CollectionIndex.jsx:147–156  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

145 }
146}
147const mapStateToProps = (state, ownProps) => {
148 const { query } = ownProps;
149 const createdByFilterVal = query.getFilter('creator_id');
150
151 return {
152 result: selectCollectionsResult(state, query),
153 role: selectCurrentRole(state),
154 createdByFilterVal,
155 };
156};
157
158export default compose(
159 withRouter,

Callers

nothing calls this directly

Calls 3

selectCollectionsResultFunction · 0.90
selectCurrentRoleFunction · 0.90
getFilterMethod · 0.80

Tested by

no test coverage detected