mirror of https://github.com/langgenius/dify.git
feat: add tooltip in api rate limit card
This commit is contained in:
parent
79fdc5b07b
commit
4bb225c7ee
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue