Skip to content

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

Add comment

Joshen Lime7d1413acc10
diff --git a/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx b/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx
index fca6f1e6987..90f02c9e0d3 100644
--- a/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx
+++ b/studio/components/interfaces/Billing/AddOns/ComputeSizeSelection.tsx
@@ -1,18 +1,29 @@
import { FC } from 'react'
-import { Radio } from '@supabase/ui'
+import { Badge, Radio } from '@supabase/ui'
import { getProductPrice } from '../Billing.utils'
interface Props {
computeSizes: any[]
+ currentComputeSize: any
selectedComputeSize: any
onSelectOption: (option: any) => void
}
-const ComputeSizeSelection: FC<Props> = ({ computeSizes, selectedComputeSize, onSelectOption }) => {
+const ComputeSizeSelection: FC<Props> = ({
+ computeSizes,
+ currentComputeSize,
+ selectedComputeSize,
+ onSelectOption,
+}) => {
+ // [Joshen] We should have some indication on what's the current compute
+ // size of the project based on currentComputeSize
return (
<div className="space-y-4">
<div>
- <p>Database Add-ons</p>
+ <div className="flex items-center space-x-2">
+ <h4 className="text-lg">Database add-ons</h4>
+ <Badge color="green">Optional</Badge>
+ </div>
<p className="text-sm text-scale-1100">
Choose the database instance size that best fits your needs
</p>
diff --git a/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx b/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx
index 0632d0227a9..11d2cd2b900 100644
--- a/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx
+++ b/studio/components/interfaces/Billing/ProUpgrade/ProUpgrade.tsx
@@ -206,12 +206,9 @@ const ProUpgrade: FC<Props> = ({
{projectRegion !== 'af-south-1' && (
<>
<Divider light />
- <div className="flex items-center space-x-2">
- <h4 className="text-lg">Extend your project with add-ons</h4>
- <Badge color="green">Optional</Badge>
- </div>
<ComputeSizeSelection
computeSizes={computeSizes || []}
+ currentComputeSize={currentComputeSize}
selectedComputeSize={selectedComputeSize}
onSelectOption={onSelectComputeSizeOption}
/>