1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import React from 'react';
- import ProcessingIssueHint from 'app/components/stream/processingIssueHint';
- export default {
- title: 'Features/Issues/ProcessingIssueHint',
- 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 (
- <React.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}
- />
- </React.Fragment>
- );
- };
- Default.storyName = 'default';
|