MCPcopy
hub / github.com/henryboldi/felony / mapDispatchToProps

Function mapDispatchToProps

app/containers/OutputContainer.js:20–34  ·  view source on GitHub ↗
(dispatch)

Source from the content-addressed store, hash-verified

18}
19
20const mapDispatchToProps = (dispatch) => {
21 return {
22 toggleComposer: () => {
23 dispatch(toggleComposer())
24 },
25
26 clearSelectedKeys: () => {
27 dispatch(clearSelectedKeys())
28 },
29
30 setOutput: (output) => {
31 dispatch(setOutput(output))
32 },
33 }
34}
35
36const OutputContainer = connect(
37 mapStateToProps,

Callers

nothing calls this directly

Calls 3

toggleComposerFunction · 0.85
clearSelectedKeysFunction · 0.85
setOutputFunction · 0.85

Tested by

no test coverage detected