emptyStateWarning.stories.js 833 B

12345678910111213141516171819202122232425262728293031
  1. import {action} from '@storybook/addon-actions';
  2. import Button from 'sentry/components/button';
  3. import EmptyStateWarning from 'sentry/components/emptyStateWarning';
  4. import {IconClose} from 'sentry/icons';
  5. export default {
  6. title: 'Views/Empty States/Empty State Warning',
  7. component: EmptyStateWarning,
  8. };
  9. export const Default = () => (
  10. <EmptyStateWarning data="https://example.org/foo/bar/">
  11. <p>There are no events found!</p>
  12. </EmptyStateWarning>
  13. );
  14. export const WithInnerButton = () => (
  15. <EmptyStateWarning data="https://example.org/foo/bar/">
  16. <p>There are no events found!</p>
  17. <Button
  18. size="sm"
  19. icon={<IconClose color="gray500" size="md" isCircled />}
  20. onClick={action('click')}
  21. >
  22. Clear filters
  23. </Button>
  24. </EmptyStateWarning>
  25. );
  26. Default.storyName = 'Empty State Warning';