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

Function mapDispatchToProps

app/containers/KeychainContainer.js:21–39  ·  view source on GitHub ↗
(dispatch)

Source from the content-addressed store, hash-verified

19}
20
21const mapDispatchToProps = (dispatch) => {
22 return {
23 addKey: (key) => {
24 dispatch(addKey(key))
25 },
26
27 fetchKeychain: () => {
28 dispatch(fetchKeychain())
29 },
30
31 selectKey: (id) => {
32 dispatch(selectKey(id))
33 },
34
35 showComposer: (type) => {
36 dispatch(showComposerWithType(type))
37 },
38 }
39}
40
41const KeychainContainer = connect(
42 mapStateToProps,

Callers

nothing calls this directly

Calls 4

addKeyFunction · 0.85
fetchKeychainFunction · 0.85
selectKeyFunction · 0.85
showComposerWithTypeFunction · 0.85

Tested by

no test coverage detected