diff --git a/apps/client/src/widgets/react/FormSelect.tsx b/apps/client/src/widgets/react/FormSelect.tsx index 1a13d1571..90ace2100 100644 --- a/apps/client/src/widgets/react/FormSelect.tsx +++ b/apps/client/src/widgets/react/FormSelect.tsx @@ -1,10 +1,12 @@ -interface FormSelectProps { +interface FormSelectProps { currentValue?: string; onChange(newValue: string): void; - values: { val: string, title: string }[]; + values: T[]; + keyProperty: keyof T; + titleProperty: keyof T; } -export default function FormSelect({ currentValue, values, onChange }: FormSelectProps) { +export default function FormSelect({ currentValue, values, onChange, keyProperty, titleProperty }: FormSelectProps) { return (