groupMergedTab.tsx 760 B

12345678910111213141516171819202122232425
  1. import * as Layout from 'sentry/components/layouts/thirds';
  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 {useParams} from 'sentry/utils/useParams';
  6. import GroupMergedView from 'sentry/views/issueDetails/groupMerged';
  7. interface GroupMergedTabProps {
  8. project: Project;
  9. }
  10. function GroupMergedTab({project}: GroupMergedTabProps) {
  11. const {groupId} = useParams<{groupId: Group['id']}>();
  12. const location = useLocation();
  13. return (
  14. <Layout.Body>
  15. <Layout.Main fullWidth>
  16. <GroupMergedView project={project} params={{groupId}} location={location} />
  17. </Layout.Main>
  18. </Layout.Body>
  19. );
  20. }
  21. export default GroupMergedTab;