monitorIssues.tsx 536 B

1234567891011121314151617181920212223242526
  1. import IssueList from 'sentry/components/issueList';
  2. import {t} from 'sentry/locale';
  3. import {Monitor} from './types';
  4. type Props = {
  5. monitor: Monitor;
  6. orgId: string;
  7. };
  8. const MonitorIssues = ({orgId, monitor}: Props) => (
  9. <IssueList
  10. endpoint={`/organizations/${orgId}/issues/`}
  11. query={{
  12. query: 'monitor.id:"' + monitor.id + '"',
  13. project: monitor.project.id,
  14. limit: 5,
  15. }}
  16. pagination={false}
  17. emptyText={t('No issues found')}
  18. noBorder
  19. noMargin
  20. />
  21. );
  22. export default MonitorIssues;