(dispatch)
| 19 | } |
| 20 | |
| 21 | const 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 | |
| 41 | const KeychainContainer = connect( |
| 42 | mapStateToProps, |
nothing calls this directly
no test coverage detected