({ scheduleUpdate })
| 9 | import PropTypes from 'prop-types'; |
| 10 | |
| 11 | function PopoverContent({ scheduleUpdate }) { |
| 12 | const [isOpen, setIsOpen] = useState(false); |
| 13 | |
| 14 | return ( |
| 15 | <> |
| 16 | <PopoverHeader>Schedule Update</PopoverHeader> |
| 17 | <PopoverBody> |
| 18 | <Button onClick={() => setIsOpen(!isOpen)}>Click me</Button> |
| 19 | <Collapse |
| 20 | isOpen={isOpen} |
| 21 | onEntered={scheduleUpdate} |
| 22 | onExited={scheduleUpdate} |
| 23 | > |
| 24 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do |
| 25 | eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad |
| 26 | minim veniam, quis nostrud exercitation ullamco laboris nisi ut |
| 27 | aliquip ex ea commodo consequat. |
| 28 | </Collapse> |
| 29 | </PopoverBody> |
| 30 | </> |
| 31 | ); |
| 32 | } |
| 33 | |
| 34 | function Example(props) { |
| 35 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…