Skip to content

Commit 552eb05

Browse files
v2 Delta 2.0
removed unused helper function from app.js and created another method as alldel() with the same functionality of alldone()
1 parent 8eecad0 commit 552eb05

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/App.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@ function App() {
1414
]
1515
setTasks(updatedTasks);
1616
}
17-
if (title === "alldone()") {
17+
if (title === "alldone()" || title === "alldel()") {
1818
setTasks([]);
1919
}
2020
}
2121

22-
const renderTask = tasks.map((task) => {
23-
return (
24-
<div key={task.id}>{task.id}. {task.title}</div>
25-
)
26-
})
27-
2822
const deleteTaskById = (id) => {
2923
const delUpdatedTasks = [
3024
...tasks.filter((task) => {

0 commit comments

Comments
 (0)