The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update Dropdown.tsx
Jonathan Summers-Muirc608a2ad2efd
diff --git a/packages/ui/src/components/Dropdown/Dropdown.tsx b/packages/ui/src/components/Dropdown/Dropdown.tsxindex e328194b241..29580333fa0 100644--- a/packages/ui/src/components/Dropdown/Dropdown.tsx+++ b/packages/ui/src/components/Dropdown/Dropdown.tsx@@ -130,7 +130,7 @@ export function Separator() {return <RadixDropdown.Separator className={__styles.separator} />}-// to do : remove onChange omit in favour of using onCheckedChange+// to do : remove onChange omit in favor of using onCheckedChangeinterface CheckboxProps extends Omit<RadixDropdownTypes.DropdownMenuCheckboxItemProps, 'onChange'> {ItemIndicator?: React.ReactNodeonChange?(x: boolean): void@@ -147,7 +147,7 @@ export function Checkbox({let __styles = styleHandler('dropdown')const handleChange = (e: any) => {- // to do : remove onChange in favour of using onCheckedChange+ // to do : remove onChange in favor of using onCheckedChangeif (onChange) onChange(e)if (props.onCheckedChange) props.onCheckedChange(e)setChecked(e)@@ -186,7 +186,7 @@ export function Radio({ ItemIndicator, ...props }: RadioProps) {)}-// to do : remove onChange omit in favour of using onValueChange+// to do : remove onChange omit in favor of using onValueChangeinterface RadioGroupProps extends Omit<RadixDropdownTypes.DropdownMenuRadioGroupProps, 'onChange'> {onChange?(x: string): void}@@ -195,7 +195,7 @@ export function RadioGroup({ value: propsValue, onChange, ...props }: RadioGroupconst [value, setValue] = useState(propsValue ? propsValue : '')const handleChange = (e: any) => {- // to do : remove onChange in favour of using onValueChange+ // to do : remove onChange in favor of using onValueChangeif (onChange) onChange(e)if (props.onValueChange) props.onValueChange(e)setValue(e)