blob: bb8ae375ecb6895bc3f5916147ac2444db5d63d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { connect } from 'react-redux'
import { setContent } from '../actions'
import Link from '../components/UI/Link.jsx'
const mapStateToProps = (state, ownProps) => ({
})
const mapDispatchToProps = (dispatch, ownProps) => ({
onClick: () => {
dispatch(setContent(ownProps.file))
}
})
const TaskContentLink = connect(
mapStateToProps,
mapDispatchToProps
)(Link)
export default TaskContentLink
|