featureDisabled.stories.js 716 B

12345678910111213141516171819202122232425262728293031
  1. import React from 'react';
  2. import {withInfo} from '@storybook/addon-info';
  3. import FeatureDisabled from 'app/components/acl/featureDisabled';
  4. export default {
  5. title: 'UI/FeatureDisabled',
  6. };
  7. export const BasicStyle = withInfo('A disabled feature component')(() => (
  8. <FeatureDisabled
  9. featureName="Example Feature"
  10. features={['organization:example-feature', 'organization:example-feature-2']}
  11. />
  12. ));
  13. BasicStyle.story = {
  14. name: 'basic style',
  15. };
  16. export const AlertStyle = withInfo('A disabled feature wrapped in an alert')(() => (
  17. <FeatureDisabled
  18. featureName="Example Feature"
  19. features={['organization:example-feature']}
  20. alert
  21. />
  22. ));
  23. AlertStyle.story = {
  24. name: 'alert style',
  25. };