(e)
| 59 | } |
| 60 | |
| 61 | const handleCheckbox = (e) => { |
| 62 | let id = e.target.name; |
| 63 | let index = todos.findIndex(item=>{ |
| 64 | return item.id === id; |
| 65 | }) |
| 66 | let newTodos = [...todos]; |
| 67 | newTodos[index].isCompleted = !newTodos[index].isCompleted; |
| 68 | setTodos(newTodos) |
| 69 | saveToLS() |
| 70 | } |
| 71 | |
| 72 | |
| 73 | return ( |
nothing calls this directly
no test coverage detected