|
@@ -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>
|