Billing fixes and limts (#29)

This commit is contained in:
Dotan Simha 2022-05-19 13:37:32 +03:00 committed by GitHub
parent 3c097a1853
commit 4e38a8c06d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 13 deletions

View file

@ -222,7 +222,7 @@ export const BillingPlanPicker: React.FC<{
title="Monthly GraphQL operations limit"
min={5}
step={1}
max={200}
max={300}
value={operationsRateLimit}
marks={[
{

View file

@ -144,22 +144,13 @@ export const PlanSummary: React.FC<{
<Stat>
<StatLabel>Operations Limit</StatLabel>
<StatHelpText>up to</StatHelpText>
<StatNumber>
{plan.planType === BillingPlanType.Hobby
? plan.includedOperationsLimit / 1_000_000
: operationsRateLimit}
M
</StatNumber>
<StatNumber>{operationsRateLimit}M</StatNumber>
<StatHelpText>per month</StatHelpText>
</Stat>
<Stat tw="mb-4">
<StatLabel>Schema Pushes Limit</StatLabel>
<StatHelpText>up to</StatHelpText>
<StatNumber>
{plan.planType === BillingPlanType.Hobby
? plan.includedSchemaPushLimit
: schemaPushesRateLimit}
</StatNumber>
<StatNumber>{schemaPushesRateLimit}</StatNumber>
<StatHelpText>per month</StatHelpText>
</Stat>
<Stat tw="mb-4">

View file

@ -1,6 +1,6 @@
export const NumericFormater = Intl.NumberFormat('en', { notation: 'compact' });
export const CurrencyFormatter = Intl.NumberFormat('en', {
notation: 'compact',
notation: 'standard',
currency: 'USD',
style: 'currency',
});