Browse Source

chore(replay): Cleanup the `session-replay-beta-grace` feature flag (#51502)

Works with https://github.com/getsentry/getsentry/pull/10941
Ryan Albrecht 1 year ago
parent
commit
2ffdabd40d
2 changed files with 1 additions and 22 deletions
  1. 0 3
      static/app/types/hooks.tsx
  2. 1 19
      static/app/views/replays/index.tsx

+ 0 - 3
static/app/types/hooks.tsx

@@ -90,8 +90,6 @@ type DisabledMemberTooltipProps = {children: React.ReactNode};
 
 type DashboardHeadersProps = {organization: Organization};
 
-type ReplayGracePeriodAlertProps = {organization: Organization};
-
 type ReplayOnboardingAlertProps = {children: React.ReactNode};
 type ReplayFeedbackButton = {children: React.ReactNode};
 type ReplayOnboardingCTAProps = {children: React.ReactNode; organization: Organization};
@@ -180,7 +178,6 @@ export type ComponentHooks = {
   'component:profiling-am1-or-mmx-upgrade': () => React.ComponentType<ProfilingAM1OrMMXUpgrade>;
   'component:profiling-billing-banner': () => React.ComponentType<ProfilingBetaAlertBannerProps>;
   'component:profiling-upgrade-plan-button': () => React.ComponentType<ProfilingUpgradePlanButtonProps>;
-  'component:replay-beta-grace-period-alert': () => React.ComponentType<ReplayGracePeriodAlertProps>;
   'component:replay-feedback-button': () => React.ComponentType<ReplayFeedbackButton>;
   'component:replay-onboarding-alert': () => React.ComponentType<ReplayOnboardingAlertProps>;
   'component:replay-onboarding-cta': () => React.ComponentType<ReplayOnboardingCTAProps>;

+ 1 - 19
static/app/views/replays/index.tsx

@@ -1,7 +1,5 @@
 import {RouteComponentProps} from 'react-router';
 
-import Feature from 'sentry/components/acl/feature';
-import HookOrDefault from 'sentry/components/hookOrDefault';
 import NoProjectMessage from 'sentry/components/noProjectMessage';
 import {Organization} from 'sentry/types';
 import withOrganization from 'sentry/utils/withOrganization';
@@ -11,24 +9,8 @@ type Props = RouteComponentProps<{}, {}> & {
   organization: Organization;
 };
 
-const BetaGracePeriodAlertHook = HookOrDefault({
-  hookName: 'component:replay-beta-grace-period-alert',
-});
-
 function ReplaysContainer({organization, children}: Props) {
-  return (
-    <NoProjectMessage organization={organization}>
-      <Feature
-        features={['session-replay-beta-grace']}
-        organization={organization}
-        renderDisabled={false}
-      >
-        <BetaGracePeriodAlertHook organization={organization} />
-      </Feature>
-
-      {children}
-    </NoProjectMessage>
-  );
+  return <NoProjectMessage organization={organization}>{children}</NoProjectMessage>;
 }
 
 export default withOrganization(ReplaysContainer);