featureDisabled.stories.js 796 B

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