(props)
| 3 | import Alert from '../../../src/Alert'; |
| 4 | |
| 5 | export function AlertFadelessExample(props) { |
| 6 | const [visible, setVisible] = useState(true); |
| 7 | |
| 8 | const onDismiss = () => setVisible(false); |
| 9 | |
| 10 | return ( |
| 11 | <div> |
| 12 | <Alert color="primary" isOpen={visible} toggle={onDismiss} fade={false}> |
| 13 | I am a primary alert and I can be dismissed without animating! |
| 14 | </Alert> |
| 15 | </div> |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | export function UncontrolledAlertFadelessExample() { |
| 20 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…