Browse Source

feat(replays): Cleanup special casing related to replay beta status badge (#44315)

Cleanup the special casing in
https://github.com/getsentry/sentry/pull/44191
Ryan Albrecht 2 years ago
parent
commit
7f7a030430

+ 0 - 6
static/app/components/replays/replaysFeatureBadge.tsx

@@ -1,14 +1,8 @@
 import FeatureBadge from 'sentry/components/featureBadge';
-import useOrganization from 'sentry/utils/useOrganization';
 
 function ReplaysFeatureBadge(
   props: Omit<React.ComponentProps<typeof FeatureBadge>, 'type'>
 ) {
-  // TODO(replay): Remove this special-case for our internal demo org
-  const organization = useOrganization();
-  if (organization.slug === 'testorg-az') {
-    return null;
-  }
   return <FeatureBadge {...props} type="new" />;
 }
 

+ 1 - 2
static/app/components/sidebar/index.tsx

@@ -249,8 +249,7 @@ function Sidebar({location, organization}: Props) {
         label={t('Replays')}
         to={`/organizations/${organization.slug}/replays/`}
         id="replays"
-        // TODO(replay): Remove this special-case for our internal demo org
-        isNew={organization.slug !== 'testorg-az'}
+        isNew
       />
     </Feature>
   );