blob: 0e8aeac0afc87f945e8a0e5cd51cf41256667262 (
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, setStyle, setAlpha, createTask } from '../actions'
import TaskFormView from '../components/Tasks/TaskFormView.jsx'
const mapStateToProps = (state) => state.currentTask
const mapDispatchToProps = {
clearContent: () => setContent(null),
clearStyle: () => setStyle(null),
setAlpha: (alpha) => setAlpha(alpha),
createTask: () => createTask(),
}
const TaskForm = connect(
mapStateToProps,
mapDispatchToProps
)(TaskFormView)
export default TaskForm
|