mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
Billing fixes and limts (#29)
This commit is contained in:
parent
3c097a1853
commit
4e38a8c06d
3 changed files with 4 additions and 13 deletions
|
|
@ -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={[
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue