mergedIssuesDrawer.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 project={project} groupId={group.id} location={location} />
  41. </EventDrawerBody>
  42. </EventDrawerContainer>
  43. );
  44. }