mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
fix: only show db size warning on capped plans
This commit is contained in:
1 parent
6139d80505
commit
cdca055270
1 file changed
+2
-1
@@ -103,10 +103,11 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [
|
||||
|
||||
const isApproachingLimit = hasLimit && usageRatio >= USAGE_APPROACHING_THRESHOLD
|
||||
const isExceededLimit = hasLimit && usageRatio >= 1
|
||||
const isCapped = usageMeta?.capped
|
||||
|
||||
return (
|
||||
<div>
|
||||
{(isApproachingLimit || isExceededLimit) && (
|
||||
{(isApproachingLimit || isExceededLimit) && isCapped && (
|
||||
<Alert
|
||||
withIcon
|
||||
variant={isExceededLimit ? 'danger' : 'warning'}
|
||||
|
||||
Reference in new issue
Block a user