|
@@ -1,4 +1,4 @@
|
|
|
-import {useEffect, useMemo} from 'react';
|
|
|
+import {useMemo} from 'react';
|
|
|
import styled from '@emotion/styled';
|
|
|
import {LocationDescriptor} from 'history';
|
|
|
import omit from 'lodash/omit';
|
|
@@ -26,7 +26,6 @@ import {IconChat} from 'sentry/icons';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import {space} from 'sentry/styles/space';
|
|
|
import {Event, Group, Organization, Project} from 'sentry/types';
|
|
|
-import {trackAnalytics} from 'sentry/utils/analytics';
|
|
|
import {getMessage} from 'sentry/utils/events';
|
|
|
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
|
|
|
import useRouteAnalyticsParams from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams';
|
|
@@ -75,19 +74,6 @@ function GroupHeaderTabs({
|
|
|
|
|
|
const issueTypeConfig = getConfigForIssueType(group);
|
|
|
|
|
|
- useEffect(() => {
|
|
|
- if (!hasReplaySupport || typeof replaysCount === 'undefined') {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- trackAnalytics('replay.render-issues-detail-count', {
|
|
|
- platform: project.platform!,
|
|
|
- project_id: project.id,
|
|
|
- count: replaysCount,
|
|
|
- organization,
|
|
|
- });
|
|
|
- }, [hasReplaySupport, replaysCount, project, organization]);
|
|
|
-
|
|
|
useRouteAnalyticsParams({
|
|
|
group_has_replay: (replaysCount ?? 0) > 0,
|
|
|
});
|