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:
parent
ae4f85bf10
commit
6bef85fdb1
2 changed files with 4 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
|
@ -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>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Reference in a new issue