diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-04 04:14:03 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-04 04:14:03 +0200 |
| commit | d520c67839724e80d8b68b8fe933f1e7755a8f42 (patch) | |
| tree | 51188a9a3b7a125d1e79c899ba7058a280bcde50 /client/containers/taskStyleLink.js | |
| parent | 2263f412817d6d2d36372e7617feb0d97fa57af8 (diff) | |
writing task form in a reduxy way
Diffstat (limited to 'client/containers/taskStyleLink.js')
| -rw-r--r-- | client/containers/taskStyleLink.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/client/containers/taskStyleLink.js b/client/containers/taskStyleLink.js new file mode 100644 index 0000000..7ec5ce5 --- /dev/null +++ b/client/containers/taskStyleLink.js @@ -0,0 +1,19 @@ +import { connect } from 'react-redux' +import { setStyle } from '../actions' +import Link from '../components/UI/Link.jsx' + +const mapStateToProps = (state, ownProps) => ({ +}) + +const mapDispatchToProps = (dispatch, ownProps) => ({ + onClick: () => { + dispatch(setStyle(ownProps.file)) + } +}) + +const TaskStyleLink = connect( + mapStateToProps, + mapDispatchToProps +)(Link) + +export default TaskStyleLink |
