(props)
| 3 | import JournalEntries from './JournalEntries'; |
| 4 | |
| 5 | function JournalList(props) { |
| 6 | return ( |
| 7 | <> |
| 8 | <Form onSubmit={props.handleSubmit} maxWidth="size-6000"> |
| 9 | <Flex direction="column" marginTop="size-300" gap="size-100"> |
| 10 | <Picker |
| 11 | label="How Was Your Day?" |
| 12 | items={props.options} |
| 13 | onSelectionChange={selected => props.setRating(selected)}> |
| 14 | {item => <Item key={item.id}>{item.name}</Item>} |
| 15 | </Picker> |
| 16 | <TextArea |
| 17 | width="size-5000" |
| 18 | label="Description" |
| 19 | value={props.description} |
| 20 | onChange={props.setDescription} |
| 21 | /> |
| 22 | <Button type="submit" marginTop="size-200" variant="primary" width="150px"> |
| 23 | <AddCircle aria-label="add circle" /> |
| 24 | <Text marginEnd="size-200">Add Entry</Text> |
| 25 | </Button> |
| 26 | </Flex> |
| 27 | </Form> |
| 28 | <Divider marginTop="size-600" marginBottom="size-300" /> |
| 29 | <h2>Entries</h2> |
| 30 | <JournalEntries list={props.entryList} /> |
| 31 | </> |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | export default JournalList; |
nothing calls this directly
no outgoing calls
no test coverage detected