mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
chore: rm per month unit in cards
This commit is contained in:
parent
6e5486b556
commit
0ac9b308cf
@ -45,8 +45,6 @@ const PlanComp: FC<Props> = ({
|
|||||||
usage,
|
usage,
|
||||||
total,
|
total,
|
||||||
} = plan
|
} = plan
|
||||||
const perMonthUnit = ` ${t('billing.usagePage.perMonth')}`
|
|
||||||
const triggerEventUnit = plan.type === Plan.sandbox ? undefined : perMonthUnit
|
|
||||||
|
|
||||||
const [showModal, setShowModal] = React.useState(false)
|
const [showModal, setShowModal] = React.useState(false)
|
||||||
const { mutateAsync } = useEducationVerify()
|
const { mutateAsync } = useEducationVerify()
|
||||||
@ -127,7 +125,6 @@ const PlanComp: FC<Props> = ({
|
|||||||
name={t('billing.usagePage.triggerEvents')}
|
name={t('billing.usagePage.triggerEvents')}
|
||||||
usage={usage.triggerEvents}
|
usage={usage.triggerEvents}
|
||||||
total={total.triggerEvents}
|
total={total.triggerEvents}
|
||||||
unit={triggerEventUnit}
|
|
||||||
tooltip={t('billing.plansCommon.triggerEvents.tooltip') as string}
|
tooltip={t('billing.plansCommon.triggerEvents.tooltip') as string}
|
||||||
/>
|
/>
|
||||||
<UsageInfo
|
<UsageInfo
|
||||||
@ -135,7 +132,6 @@ const PlanComp: FC<Props> = ({
|
|||||||
name={t('billing.plansCommon.apiRateLimit')}
|
name={t('billing.plansCommon.apiRateLimit')}
|
||||||
usage={usage.apiRateLimit}
|
usage={usage.apiRateLimit}
|
||||||
total={total.apiRateLimit}
|
total={total.apiRateLimit}
|
||||||
unit={perMonthUnit}
|
|
||||||
tooltip={total.apiRateLimit === NUM_INFINITE ? undefined : t('billing.plansCommon.apiRateLimitTooltip') as string}
|
tooltip={total.apiRateLimit === NUM_INFINITE ? undefined : t('billing.plansCommon.apiRateLimitTooltip') as string}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user