Skip to content

Commit 21faeac

Browse files
ref(js): Use named export for ScoreCard (#93370)
1 parent bf650ce commit 21faeac

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

static/app/components/scoreCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type ScoreCardProps = {
1919
trendStatus?: 'good' | 'bad';
2020
};
2121

22-
function ScoreCard({
22+
export function ScoreCard({
2323
title,
2424
score,
2525
help,
@@ -124,5 +124,3 @@ export const Trend = styled('div')<TrendProps>`
124124
line-height: 1;
125125
overflow: hidden;
126126
`;
127-
128-
export default ScoreCard;

static/app/views/organizationStats/usageStatsOrg.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {Switch} from 'sentry/components/core/switch';
1515
import ExternalLink from 'sentry/components/links/externalLink';
1616
import NotAvailable from 'sentry/components/notAvailable';
1717
import QuestionTooltip from 'sentry/components/questionTooltip';
18-
import ScoreCard from 'sentry/components/scoreCard';
18+
import {ScoreCard} from 'sentry/components/scoreCard';
1919
import {DEFAULT_STATS_PERIOD} from 'sentry/constants';
2020
import {IconSettings} from 'sentry/icons';
2121
import {t, tct} from 'sentry/locale';

static/app/views/projectsDashboard/projectCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import Panel from 'sentry/components/panels/panel';
1111
import Placeholder from 'sentry/components/placeholder';
1212
import BookmarkStar from 'sentry/components/projects/bookmarkStar';
1313
import QuestionTooltip from 'sentry/components/questionTooltip';
14-
import ScoreCard, {
14+
import {
1515
Score,
16+
ScoreCard,
1617
ScorePanel,
1718
ScoreWrapper,
1819
Title,

0 commit comments

Comments
 (0)