mergedIssuesDataSection.tsx 893 B

123456789101112131415161718192021222324252627282930
  1. import {t} from 'sentry/locale';
  2. import type {Group} from 'sentry/types/group';
  3. import type {Project} from 'sentry/types/project';
  4. import {useLocation} from 'sentry/utils/useLocation';
  5. import GroupMergedView from 'sentry/views/issueDetails/groupMerged';
  6. import {SectionKey} from 'sentry/views/issueDetails/streamline/context';
  7. import {FoldSection} from 'sentry/views/issueDetails/streamline/foldSection';
  8. interface MergedIssuesDataSectionProps {
  9. group: Group;
  10. project: Project;
  11. }
  12. export function MergedIssuesDataSection({project, group}: MergedIssuesDataSectionProps) {
  13. const location = useLocation();
  14. return (
  15. <FoldSection
  16. sectionKey={SectionKey.MERGED_ISSUES}
  17. title={t('Merged Issues')}
  18. initialCollapse
  19. >
  20. <GroupMergedView
  21. project={project}
  22. params={{groupId: group.id}}
  23. location={location}
  24. />
  25. </FoldSection>
  26. );
  27. }