Skip to content

Commit 3645ecc

Browse files
committed
Sync upstream quota updates
1 parent 6ab6550 commit 3645ecc

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/components/quota/quotaConfigs.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,15 +1558,6 @@ const formatXaiPercent = (value: number | null): string => {
15581558
return `${Math.round(value)}%`;
15591559
};
15601560

1561-
const formatXaiPeriodRange = (start?: string, end?: string): string => {
1562-
const startLabel = formatQuotaResetTime(start);
1563-
const endLabel = formatQuotaResetTime(end);
1564-
if (startLabel !== '-' && endLabel !== '-') return `${startLabel} ~ ${endLabel}`;
1565-
if (endLabel !== '-') return endLabel;
1566-
if (startLabel !== '-') return startLabel;
1567-
return '';
1568-
};
1569-
15701561
const XAI_SUPERGROK_LIMIT_CENTS = 15_000;
15711562
const XAI_SUPERGROK_HEAVY_LIMIT_CENTS = 150_000;
15721563

@@ -1616,7 +1607,6 @@ const renderXaiItems = (
16161607
? Math.max(0, Math.min(100, billing.usagePercent))
16171608
: null;
16181609
const weeklyRemaining = weeklyUsed === null ? null : Math.max(0, Math.min(100, 100 - weeklyUsed));
1619-
const weeklyPeriodLabel = formatXaiPeriodRange(billing.periodStart, billing.periodEnd);
16201610
const weeklyResetLabel = formatQuotaResetTime(billing.periodEnd);
16211611
const hasWeeklyData =
16221612
billing.periodType === 'weekly' &&
@@ -1659,9 +1649,6 @@ const renderXaiItems = (
16591649
percent: formatXaiPercent(weeklyUsed),
16601650
})
16611651
),
1662-
weeklyPeriodLabel
1663-
? h('span', { className: styleMap.quotaAmount }, weeklyPeriodLabel)
1664-
: null,
16651652
weeklyResetLabel !== '-'
16661653
? h(
16671654
'span',

0 commit comments

Comments
 (0)