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

Function mapStateToProps

ui/src/components/common/types/Topic.jsx:6–10  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

4import { selectLocale, selectModel } from 'selectors';
5
6const mapStateToProps = (state) => {
7 const model = selectModel(state);
8 const locale = selectLocale(state);
9 return { fullList: model.types.topic.values, locale };
10};
11
12class Topic extends Component {
13 static Name = connect(mapStateToProps)(VLTopic.Label);

Callers

nothing calls this directly

Calls 2

selectModelFunction · 0.90
selectLocaleFunction · 0.90

Tested by

no test coverage detected