groupSimilarIssuesTab.tsx 774 B

123456789101112131415161718192021222324
  1. import * as Layout from 'sentry/components/layouts/thirds';
  2. import GroupEventDetails from 'sentry/views/issueDetails/groupEventDetails/groupEventDetails';
  3. import GroupSimilarIssues from 'sentry/views/issueDetails/groupSimilarIssues/similarIssues';
  4. import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
  5. function GroupSimilarIssuesTab() {
  6. const hasStreamlinedUI = useHasStreamlinedUI();
  7. // TODO(streamlined-ui): Remove this component and point router to GroupEventDetails
  8. // Similar issues will open in a drawer
  9. if (hasStreamlinedUI) {
  10. return <GroupEventDetails />;
  11. }
  12. return (
  13. <Layout.Body>
  14. <Layout.Main fullWidth>
  15. <GroupSimilarIssues />
  16. </Layout.Main>
  17. </Layout.Body>
  18. );
  19. }
  20. export default GroupSimilarIssuesTab;