featureDisabled.stories.js 787 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import FeatureDisabled from 'sentry/components/acl/featureDisabled';
  2. export default {
  3. title: 'Components/Alerts/Feature Disabled',
  4. };
  5. export const BasicStyle = () => (
  6. <FeatureDisabled
  7. featureName="Example Feature"
  8. features={['organization:example-feature', 'organization:example-feature-2']}
  9. />
  10. );
  11. BasicStyle.storyName = 'Basic Style';
  12. BasicStyle.parameters = {
  13. docs: {
  14. description: {
  15. story: 'A disabled feature component',
  16. },
  17. },
  18. };
  19. export const AlertStyle = () => (
  20. <FeatureDisabled
  21. featureName="Example Feature"
  22. features={['organization:example-feature']}
  23. alert
  24. />
  25. );
  26. AlertStyle.storyName = 'Alert Style';
  27. AlertStyle.parameters = {
  28. docs: {
  29. description: {
  30. story: 'A disabled feature wrapped in an alert',
  31. },
  32. },
  33. };