import {connect} from 'react-redux'

import {addTodo} from 'actions/actions'
import TodoFormPresentation from 'components/TodoFormPresentation/TodoFormPresentation'

const mapStateToProps = (state) => {
  return {}
}

const mapDispatchToProps = (dispatch) => {
  return {
    onAddTodo: (text) => (text !== '') ? dispatch(addTodo(text)) : ''
  }
}

const TodoForm = connect(mapStateToProps, mapDispatchToProps)(TodoFormPresentation)

export default TodoForm

@@ -163,60 +163,8 @@
 n'%0A%0A
-const mapStateToProps = (state) =%3E %7B%0A  return %7B%7D%0A%7D%0A%0A
 cons
@@ -237,16 +237,27 @@
 text) =%3E
+ %7B%0A      if
  (text !
@@ -267,9 +267,17 @@
 '') 
-?
+%7B%0A       
  dis
@@ -300,13 +300,22 @@
 xt))
- : ''
+%0A      %7D%0A    %7D
 %0A  %7D
@@ -347,23 +347,17 @@
 ect(
-mapStateToProps
+undefined
 , ma

Make TodoForm more elegant