Skip to content

Commit 575e2a2

Browse files
ryan953andrewshie-sentry
authored andcommitted
ref(replay): Inline ReplaySettingsAlert where its used (#89631)
This is used in one spot, doesn't need to be it's own file inside `components/replays/alerts/`
1 parent 0180430 commit 575e2a2

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

static/app/components/replays/alerts/replaySettingsAlert.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

static/app/views/settings/project/projectReplays.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {LinkButton} from 'sentry/components/core/button';
33
import Form from 'sentry/components/forms/form';
44
import JsonForm from 'sentry/components/forms/jsonForm';
55
import type {JsonFormObject} from 'sentry/components/forms/types';
6+
import HookOrDefault from 'sentry/components/hookOrDefault';
67
import Link from 'sentry/components/links/link';
7-
import ReplaySettingsAlert from 'sentry/components/replays/alerts/replaySettingsAlert';
88
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
99
import {t, tct} from 'sentry/locale';
1010
import ProjectsStore from 'sentry/stores/projectsStore';
@@ -14,6 +14,11 @@ import type {Project} from 'sentry/types/project';
1414
import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
1515
import {ProjectPermissionAlert} from 'sentry/views/settings/project/projectPermissionAlert';
1616

17+
const ReplaySettingsAlert = HookOrDefault({
18+
hookName: 'component:replay-settings-alert',
19+
defaultComponent: null,
20+
});
21+
1722
type RouteParams = {
1823
projectId: string;
1924
};

0 commit comments

Comments
 (0)