linkWithConfirmation.stories.js 633 B

123456789101112131415161718192021222324
  1. import {action} from '@storybook/addon-actions';
  2. import LinkWithConfirmation from 'sentry/components/links/linkWithConfirmation';
  3. export default {
  4. title: 'Views/Modals/Link With Confirmation Modal',
  5. };
  6. export const __LinkWithConfirmation = () => (
  7. <div>
  8. <LinkWithConfirmation message="Message" title="Title" onConfirm={action('confirmed')}>
  9. Link With Confirmation
  10. </LinkWithConfirmation>
  11. </div>
  12. );
  13. __LinkWithConfirmation.storyName = 'Link With Confirmation Modal';
  14. __LinkWithConfirmation.parameters = {
  15. docs: {
  16. description: {
  17. story: 'A link (<a>) that opens a confirmation modal.',
  18. },
  19. },
  20. };