Browse Source

feat(ToDoForm): add function _handleDeleteAll and log 'Delete All'

Helder 6 years ago
parent
commit
17f5798171
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/app/containers/Home/ToDo/ToDoForm.jsx

+ 5 - 1
src/app/containers/Home/ToDo/ToDoForm.jsx

@@ -22,6 +22,10 @@ class ToDoForm extends Component{
         this.props.dispatch(pushToDo(this.props.todoText));
     }
 
+    _handleDeleteAll = (event) => {
+      console.log("Delete All");
+     }
+
 
     render(){
         const style = {
@@ -44,7 +48,7 @@ class ToDoForm extends Component{
                 style={style}
                 onClick={this._handleSubmit}
               />
-              <IconButton aria-label="Delete" color="secondary">
+              <IconButton aria-label="Delete" color="secondary" onClick={this._handleDeleteAll}>
                 <DeleteIcon fontSize="large" />
               </IconButton>
               </form>