1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import {Fragment} from 'react';
- import ProcessingIssueHint from 'sentry/components/stream/processingIssueHint';
- export default {
- title: 'Features/Issues/Processing Issue Hint',
- args: {
- showProject: false,
- },
- };
- export const Default = ({showProject}) => {
- const issue = {
- project: 'sentry-test',
- numIssues: 6,
- issuesProcessing: 4,
- resolveableIssues: 2,
- signedLink: '',
- lastSeen: new Date().toISOString(),
- hasMoreResolveableIssues: true,
- hasIssues: true,
- };
- const warning = {...issue, numIssues: 0};
- const info = {...issue, numIssues: 0, issuesProcessing: 0};
- return (
- <Fragment>
- <ProcessingIssueHint
- issue={issue}
- projectId={issue.project}
- orgId="organization-slug"
- showProject={showProject}
- />
- <br />
- <ProcessingIssueHint
- issue={warning}
- projectId={warning.project}
- orgId="organization-slug"
- showProject={showProject}
- />
- <br />
- <ProcessingIssueHint
- issue={info}
- projectId={info.project}
- orgId="organization-slug"
- showProject={showProject}
- />
- </Fragment>
- );
- };
- Default.storyName = 'Processing Issue Hint';
|