The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix prop errors
Joshen Lim0cfd244b75b1
diff --git a/studio/components/interfaces/Billing/PaymentSummaryPanel/CostBreakdownModal.tsx b/studio/components/interfaces/Billing/PaymentSummaryPanel/CostBreakdownModal.tsxindex 83d96fed2af..dc65957fd04 100644--- a/studio/components/interfaces/Billing/PaymentSummaryPanel/CostBreakdownModal.tsx+++ b/studio/components/interfaces/Billing/PaymentSummaryPanel/CostBreakdownModal.tsx@@ -46,7 +46,7 @@ const CostBreakdownModal: FC<Props> = ({<div className="text-xs w-[10%] text-right">Qty</div><div className="text-xs w-[15%] text-right">Amount</div></div>- {Object.keys(groupedBreakdown).map((startPeriod: any) => {+ {Object.keys(groupedBreakdown).map((startPeriod: any, idx: number) => {const start = new Date(Number(startPeriod) * 1000).toLocaleDateString('en-US', {day: 'numeric',month: 'long',@@ -60,15 +60,15 @@ const CostBreakdownModal: FC<Props> = ({year: 'numeric',})return (- <div className="border-b border-scale-600">+ <div key={`breakdown-${idx}`} className="border-b border-scale-600"><div className="flex items-center py-2 px-4 "><div className="text-xs w-full text-scale-1100">{start} - {end}</div></div>- {groupedBreakdown[startPeriod].map((item: any) => {+ {groupedBreakdown[startPeriod].map((item: any, index: number) => {return (- <div className="flex items-center py-2 px-4">+ <div key={`breakdown-row-${index}`} className="flex items-center py-2 px-4"><div className="text-sm w-[75%]">{item.description}</div><div className="text-sm w-[10%] text-right">{item.quantity}</div><div className="text-sm w-[15%] text-right">diff --git a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsxindex e1ba0a5dae9..2f0d337e9e0 100644--- a/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx+++ b/studio/components/interfaces/Billing/PaymentSummaryPanel/PaymentSummaryPanel.tsx@@ -54,6 +54,7 @@ const PaymentSummaryPanel: FC<Props> = ({(currentPlan.prod_id !== STRIPE_PRODUCT_IDS.PAYG && currentPlan.prod_id !== selectedPlan?.id) ||(currentPlan.prod_id !== STRIPE_PRODUCT_IDS.PAYG && !isSpendCapEnabled) ||(currentPlan.prod_id === STRIPE_PRODUCT_IDS.PAYG && isSpendCapEnabled)+ console.log('PaymentSummaryPanel', currentComputeSize, selectedComputeSize)const isChangingComputeSize = currentComputeSize.id !== selectedComputeSize.idconst hasChangesToPlan = subscriptionPreview?.has_changes ?? false