()
| 77 | |
| 78 | // A list component to show all the todos. |
| 79 | const Todos = () => { |
| 80 | const renderItem = ({ item: id }) => <Todo id={id} />; |
| 81 | return ( |
| 82 | <FlatList |
| 83 | data={useSortedRowIds(TODO_TABLE, DONE_CELL)} |
| 84 | renderItem={renderItem} |
| 85 | style={styles.todos} |
| 86 | /> |
| 87 | ); |
| 88 | }; |
| 89 | |
| 90 | // A button component to delete all the todos, only shows when there are some. |
| 91 | const ClearTodos = () => { |
nothing calls this directly
no outgoing calls
no test coverage detected