Skip to content

Commit d31c84a

Browse files
committed
show always deletion button for tasks
1 parent 7d9b9e8 commit d31c84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo-app/src/components/TodoList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function TaskItem(task) {
1010
<Flex gap="small" key={task.id}>
1111
<Checkbox checked={task.done} onClick={() => db.tasks.update(task.id, { done: task.done ? 0 : 1 })} />
1212
<Input value={task.title} onChange={e => db.tasks.update(task.id, { title: e.target.value})} disabled={task.done} />
13-
{ task.done ? <Button danger type="link" icon={<DeleteOutlined />} onClick={() => db.tasks.delete(task.id)} /> : '' }
13+
<Button danger type="link" icon={<DeleteOutlined />} onClick={() => db.tasks.delete(task.id)} />
1414
</Flex>
1515
)
1616
}

0 commit comments

Comments
 (0)