dynamicWrapper.stories.js 464 B

123456789101112
  1. import React from 'react';
  2. import {storiesOf} from '@storybook/react';
  3. import {withInfo} from '@storybook/addon-info';
  4. import DynamicWrapper from 'sentry-ui/dynamicWrapper';
  5. storiesOf('DynamicWrapper', module).add(
  6. 'default',
  7. withInfo(
  8. 'Use this to wrap dynamic content (i.e. dates) for acceptance/snapshot tests. Currently checks for existance of PERCY_TOKEN env var'
  9. )(() => <DynamicWrapper fixed="Fixed Content" value={new Date().toString()} />)
  10. );