blob: b341e91dd288edfaa990f1221ec73dd45ccfd8e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { connect } from 'react-redux'
import { cancelTask } from '../actions'
import TaskListView from '../components/Tasks/TaskListView.jsx'
const mapStateToProps = (state) => ({ tasks: state.tasks })
const mapDispatchToProps = (dispatch) => ({
cancelTask: (task) => {
dispatch(cancelTask(task))
}
})
const TaskList = connect(
mapStateToProps,
mapDispatchToProps
)(TaskListView)
export default TaskList
|