(props)
| 32 | } |
| 33 | |
| 34 | function Example(props) { |
| 35 | return ( |
| 36 | <div className="text-center"> |
| 37 | <Button id="ScheduleUpdateButton" type="button"> |
| 38 | Open Popover |
| 39 | </Button> |
| 40 | <UncontrolledPopover |
| 41 | trigger="click" |
| 42 | placement="top" |
| 43 | target="ScheduleUpdateButton" |
| 44 | > |
| 45 | {({ scheduleUpdate }) => ( |
| 46 | <PopoverContent scheduleUpdate={scheduleUpdate} /> |
| 47 | )} |
| 48 | </UncontrolledPopover> |
| 49 | </div> |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | PopoverContent.propTypes = { |
| 54 | scheduleUpdate: PropTypes.func, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…