mutedBox.stories.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import MutedBox from 'sentry/components/mutedBox';
  2. export default {
  3. title: 'Features/Issues/Muted Box',
  4. component: MutedBox,
  5. };
  6. export const Default = () => <MutedBox statusDetails={{}} />;
  7. Default.storyName = 'Default';
  8. export const IgnoreUntil = () => (
  9. <MutedBox statusDetails={{ignoreUntil: '2017-06-21T19:45:10Z'}} />
  10. );
  11. IgnoreUntil.storyName = 'Ignore Until Timestamp';
  12. IgnoreUntil.parameters = {
  13. docs: {
  14. description: {
  15. story: 'Ignore until timestamp',
  16. },
  17. },
  18. };
  19. export const IgnoreCount = () => <MutedBox statusDetails={{ignoreCount: 100}} />;
  20. IgnoreCount.storyName = 'Ignore Until Count';
  21. IgnoreCount.parameters = {
  22. docs: {
  23. description: {
  24. story: 'Ignore until "count"',
  25. },
  26. },
  27. };
  28. export const IgnoreCountWIgnoreWindow = () => (
  29. <MutedBox statusDetails={{ignoreCount: 100, ignoreWindow: 1}} />
  30. );
  31. IgnoreCountWIgnoreWindow.storyName = 'Ignore Count with Ignore Window';
  32. IgnoreCountWIgnoreWindow.parameters = {
  33. docs: {
  34. description: {
  35. story: 'Ignore count with window',
  36. },
  37. },
  38. };
  39. export const IgnoreUserCount = () => <MutedBox statusDetails={{ignoreUserCount: 100}} />;
  40. IgnoreUserCount.storyName = 'Ignore User Count';
  41. IgnoreUserCount.parameters = {
  42. docs: {
  43. description: {
  44. story: 'Ignore user count',
  45. },
  46. },
  47. };
  48. export const IgnoreUserCountWIgnoreUserWindow = () => (
  49. <MutedBox statusDetails={{ignoreUserCount: 100, ignoreUserWindow: 1}} />
  50. );
  51. IgnoreUserCountWIgnoreUserWindow.storyName = 'Ignore User Count with Ignore User Window';
  52. IgnoreUserCountWIgnoreUserWindow.parameters = {
  53. docs: {
  54. description: {
  55. story: 'Ignore user count with window',
  56. },
  57. },
  58. };