Skip to content

Commit a520885

Browse files
authored
ref: Move some NOT_AVAILABLE_MESSAGES closer to their callsites (#97323)
1 parent e7d883c commit a520885

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

static/app/constants/notAvailableMessages.tsx

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

static/app/views/projectDetail/projectCharts.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
} from 'sentry/components/charts/utils';
2424
import Panel from 'sentry/components/panels/panel';
2525
import Placeholder from 'sentry/components/placeholder';
26-
import {NOT_AVAILABLE_MESSAGES} from 'sentry/constants/notAvailableMessages';
2726
import {t} from 'sentry/locale';
2827
import type {SelectValue} from 'sentry/types/core';
2928
import type {Organization} from 'sentry/types/organization';
@@ -140,8 +139,10 @@ class ProjectCharts extends Component<Props, State> {
140139
get displayModes(): Array<SelectValue<string>> {
141140
const {organization, hasSessions, hasTransactions, project} = this.props;
142141
const hasPerformance = organization.features.includes('performance-view');
143-
const noPerformanceTooltip = NOT_AVAILABLE_MESSAGES.performance;
144-
const noHealthTooltip = NOT_AVAILABLE_MESSAGES.releaseHealth;
142+
const noPerformanceTooltip = t(
143+
'This view is only available with Performance Monitoring.'
144+
);
145+
const noHealthTooltip = t('This view is only available with Release Health.');
145146

146147
const options = [
147148
{

0 commit comments

Comments
 (0)