Skip to content

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

Chore: update billing address selection (#6792)

Isaiah Hamilton79b8b747f4c4
diff --git a/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx b/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx
index 6e21d3f223d..b399b3c51b8 100644
--- a/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx
@@ -1,7 +1,7 @@
import { FC, useState } from 'react'
import { isEqual } from 'lodash'
import { Dictionary } from 'components/grid'
-import { Form, Input, Button, Select } from '@supabase/ui'
+import { Form, Input, Button, Listbox } from '@supabase/ui'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { checkPermissions, useStore, useFlag } from 'hooks'
@@ -110,22 +110,26 @@ const BillingAddress: FC<Props> = ({ loading, address, onAddressUpdated }) => {
disabled={!canUpdateBillingAddress}
/>
<div className="flex items-center space-x-2">
- <Select
+ <Listbox
className="w-full"
id="country"
name="country"
placeholder="Country"
disabled={!canUpdateBillingAddress}
>
- <Select.Option key="empty" value="">
+ <Listbox.Option label="---" key="empty" value="">
---
- </Select.Option>
+ </Listbox.Option>
{COUNTRIES.map((country) => (
- <Select.Option key={country.code} value={country.code}>
+ <Listbox.Option
+ label={country.name}
+ key={country.code}
+ value={country.code}
+ >
{country.name}
- </Select.Option>
+ </Listbox.Option>
))}
- </Select>
+ </Listbox>
<Input
className="w-full"
id="postal_code"