(props)
| 4 | import Completed from './Completed'; |
| 5 | |
| 6 | function TodoList(props) { |
| 7 | return ( |
| 8 | <> |
| 9 | <Form onSubmit={props.handleSubmit} maxWidth="size-6000"> |
| 10 | <Flex direction="column"> |
| 11 | <Flex direction="row" height="size-800" gap="size-200" alignItems={'end'}> |
| 12 | <TextField |
| 13 | label="Enter Task" |
| 14 | width="size-5000" |
| 15 | value={props.value} |
| 16 | onChange={props.setValue} |
| 17 | isRequired |
| 18 | /> |
| 19 | <Button variant="cta" type="submit"> |
| 20 | Submit |
| 21 | </Button> |
| 22 | </Flex> |
| 23 | <h2>To-Do</h2> |
| 24 | <ToDoItems |
| 25 | list={props.list} |
| 26 | handleList={props.setList} |
| 27 | updateCompleted={props.updateCompleted} |
| 28 | /> |
| 29 | </Flex> |
| 30 | </Form> |
| 31 | <Divider marginTop="size-300" marginBottom="size-300" /> |
| 32 | <h2>Completed</h2> |
| 33 | <Completed completed={props.completed} onDelete={props.clearCompleted} /> |
| 34 | </> |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | export default TodoList; |
nothing calls this directly
no outgoing calls
no test coverage detected