0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

style(console): fix mau unit price style (#4220)

This commit is contained in:
Xiao Yijun 2023-07-25 11:41:55 +08:00 committed by GitHub
parent ae4f85bf10
commit 6bef85fdb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -44,7 +44,9 @@ function PlanCardItem({ plan, onSelect }: Props) {
const tierPrices = useMemo(() => { const tierPrices = useMemo(() => {
const prices = stripeProducts const prices = stripeProducts
.filter(({ type }) => type !== 'flat') .filter(({ type }) => type !== 'flat')
.map(({ price: { unitAmountDecimal } }) => `$${Number(unitAmountDecimal) / 100}`); .map(
({ price: { unitAmountDecimal } }) => `$${(Number(unitAmountDecimal) / 100).toFixed(3)}`
);
return prices.length > 0 ? prices.join(' ') : '$0.00'; return prices.length > 0 ? prices.join(' ') : '$0.00';
}, [stripeProducts]); }, [stripeProducts]);

View file

@ -121,7 +121,7 @@ function PlanQuotaTable({ subscriptionPlans }: Props) {
<div key={value}> <div key={value}>
<DynamicT <DynamicT
forKey="subscription.quota_table.mau_price" forKey="subscription.quota_table.mau_price"
interpolation={{ value: Number(value) / 100 }} interpolation={{ value: (Number(value) / 100).toFixed(3) }}
/> />
</div> </div>
))} ))}