feat: add tooltip in api rate limit card

This commit is contained in:
lyzno1 2025-11-13 17:16:16 +08:00
parent 79fdc5b07b
commit 4bb225c7ee
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import {
RiSpeedLine,
} from '@remixicon/react'
import { Plan, SelfHostedPlan } from '../type'
import { NUM_INFINITE } from '../config'
import VectorSpaceInfo from '../usage-info/vector-space-info'
import AppsInfo from '../usage-info/apps-info'
import UpgradeBtn from '../upgrade-btn'
@ -137,6 +138,7 @@ const PlanComp: FC<Props> = ({
usage={usage.apiRateLimit}
total={total.apiRateLimit}
unit={perMonthUnit}
tooltip={total.apiRateLimit === NUM_INFINITE ? undefined : t('billing.plansCommon.apiRateLimitTooltip') as string}
/>
</div>