seenInfo.stories.js 567 B

12345678910111213141516171819202122232425262728293031
  1. import SeenInfo from 'sentry/components/group/seenInfo';
  2. export default {
  3. title: 'Features/Issues/Seen Info',
  4. args: {
  5. title: 'Last Seen',
  6. },
  7. };
  8. const organization = {
  9. slug: 'test-org',
  10. };
  11. const date = new Date();
  12. export const Default = ({title}) => {
  13. return (
  14. <SeenInfo
  15. hasRelease={false}
  16. organization={organization}
  17. orgSlug="sentry-test"
  18. environment="prod"
  19. projectSlug="test-project"
  20. projectId="1"
  21. title={title}
  22. date={date}
  23. dateGlobal={date}
  24. />
  25. );
  26. };
  27. Default.storyName = 'Seen Info';