We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9b9e8 commit d31c84aCopy full SHA for d31c84a
demo-app/src/components/TodoList.jsx
@@ -10,7 +10,7 @@ function TaskItem(task) {
10
<Flex gap="small" key={task.id}>
11
<Checkbox checked={task.done} onClick={() => db.tasks.update(task.id, { done: task.done ? 0 : 1 })} />
12
<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)} /> : '' }
+ <Button danger type="link" icon={<DeleteOutlined />} onClick={() => db.tasks.delete(task.id)} />
14
</Flex>
15
)
16
}
0 commit comments