Merge pull request #6582 from supabase/feat/quota-billing

Feat/quota billing
This commit is contained in:
Jonathan Summers-Muir authored and GitHub committed 2022-04-29 12:34:23 +08:00
commit b985d3a328
2 files changed
+4 -1

No files matched your search

@@ -231,7 +231,6 @@ const ProjectUsage: FC<Props> = ({ project }) => {
isLoading={!charts && !error ? true : false}
onBarClick={(v) => handleBarClick(v, '/realtime')}
/>
<div className="py-[1.64rem]" />
</Panel.Content>
</Panel>
</div>
@@ -272,6 +272,10 @@ export const ProjectUsageMinimal: FC<any> = ({ projectRef, subscription_id, filt
const { data: stats, error: usageError } = useSWR(`${API_URL}/projects/${projectRef}/usage`, get)
const { subscription, isLoading: loading, error } = useProjectSubscription(projectRef)
if (subscription?.tier?.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.PAYG) {
return <></>
}
const tier =
subscription?.tier?.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.PRO ? 'pro' : 'free'