mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
Merge pull request #6582 from supabase/feat/quota-billing
Feat/quota billing
This commit is contained in:
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'
|
||||
|
||||
|
||||
Reference in new issue
Block a user