mergedIssuesDrawer.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import ProjectAvatar from 'sentry/components/avatar/projectAvatar';
  2. import {
  3. CrumbContainer,
  4. EventDrawerBody,
  5. EventDrawerContainer,
  6. EventDrawerHeader,
  7. EventNavigator,
  8. Header,
  9. NavigationCrumbs,
  10. ShortId,
  11. } from 'sentry/components/events/eventDrawer';
  12. import {t} from 'sentry/locale';
  13. import type {Group} from 'sentry/types/group';
  14. import type {Project} from 'sentry/types/project';
  15. import {useLocation} from 'sentry/utils/useLocation';
  16. import GroupMergedView from 'sentry/views/issueDetails/groupMerged';
  17. export function MergedIssuesDrawer({group, project}: {group: Group; project: Project}) {
  18. const location = useLocation();
  19. return (
  20. <EventDrawerContainer>
  21. <EventDrawerHeader>
  22. <NavigationCrumbs
  23. crumbs={[
  24. {
  25. label: (
  26. <CrumbContainer>
  27. <ProjectAvatar project={project} />
  28. <ShortId>{group.shortId}</ShortId>
  29. </CrumbContainer>
  30. ),
  31. },
  32. {label: t('Merged Issues')},
  33. ]}
  34. />
  35. </EventDrawerHeader>
  36. <EventNavigator>
  37. <Header>{t('Merged Issues')}</Header>
  38. </EventNavigator>
  39. <EventDrawerBody>
  40. <GroupMergedView
  41. project={project}
  42. params={{groupId: group.id}}
  43. location={location}
  44. />
  45. </EventDrawerBody>
  46. </EventDrawerContainer>
  47. );
  48. }