Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update costbreakdownrow

Jonathan Summers-Muir9bf27776d5b1
diff --git a/studio/components/interfaces/Billing/Subscription/CostBreakdownRow.tsx b/studio/components/interfaces/Billing/Subscription/CostBreakdownRow.tsx
index c86b3f5d147..fd679cfcb03 100644
--- a/studio/components/interfaces/Billing/Subscription/CostBreakdownRow.tsx
+++ b/studio/components/interfaces/Billing/Subscription/CostBreakdownRow.tsx
@@ -1,27 +1,33 @@
import { FC } from 'react'
-import { Typography } from '@supabase/ui'
+import { Badge, Typography } from '@supabase/ui'
interface Props {
item: string
amount: number | string
unitPrice: number | string
price: number | string
+ freeQuota?: number
}
-const CostBreakdownRow: FC<Props> = ({ item, amount, unitPrice, price }) => {
+const CostBreakdownRow: FC<Props> = ({ item, amount, unitPrice, price, freeQuota }) => {
return (
- <div className="px-6 py-3 relative border-t border-panel-border-light dark:border-panel-border-dark flex items-center">
- <div className="w-[40%]">
- <Typography.Text>{item}</Typography.Text>
+ <div className="border-panel-border-light dark:border-panel-border-dark relative flex items-center border-t px-6 py-3">
+ <div className="flex w-[40%] items-center gap-3">
+ <span>{item}</span>
+ {freeQuota && (
+ <Badge color="scale">
+ <span className="text-scale-900 text-xs">{`${freeQuota / 1000000000}GB included`}</span>
+ </Badge>
+ )}
</div>
- <div className="w-[20%] flex justify-end">
- <Typography.Text>{amount}</Typography.Text>
+ <div className="flex w-[20%] justify-end">
+ <span className="text-sm">{amount}</span>
</div>
- <div className="w-[20%] flex justify-end">
- <Typography.Text>${unitPrice}</Typography.Text>
+ <div className="flex w-[20%] justify-end">
+ <span>${unitPrice}</span>
</div>
- <div className="w-[20%] flex justify-end">
- <Typography.Text>${price}</Typography.Text>
+ <div className="flex w-[20%] justify-end">
+ <span>${price}</span>
</div>
</div>
)