123456789101112131415161718192021222324252627282930 |
- import {Button} from 'sentry/components/button';
- import Confirm from 'sentry/components/confirm';
- // TODO(scttcper): modal not working
- export default {
- title: 'Components/Buttons/Confirm',
- component: Confirm,
- args: {
- message: 'Are you sure you want to do this?',
- },
- argTypes: {
- onConfirm: {action: 'confirmed'},
- },
- };
- export const _Confirm = ({...args}) => (
- <div>
- <Confirm {...args}>
- <Button priority="primary">Confirm on Button click</Button>
- </Confirm>
- </div>
- );
- _Confirm.parameters = {
- docs: {
- description: {
- story:
- 'Component whose child is rendered as the "action" component that when clicked opens the "Confirm Modal"',
- },
- },
- };
|