Set styles for 'Select' component
Change-Id: I279d28e478a3d63b6d620f5362580854a0e62b3f
diff --git a/client/src/components/Settings.tsx b/client/src/components/Settings.tsx
index 81333de..ff3ac90 100644
--- a/client/src/components/Settings.tsx
+++ b/client/src/components/Settings.tsx
@@ -55,12 +55,17 @@
);
};
-interface SettingSelectProps extends Setting, CustomSelectProps {}
+export interface SettingSelectProps<OptionPayload> extends Setting, CustomSelectProps<OptionPayload> {}
-export const SettingSelect = ({ options, value, onChange, ...settingBaseProps }: SettingSelectProps) => {
+export const SettingSelect = <OptionPayload,>({
+ options,
+ option,
+ onChange,
+ ...settingBaseProps
+}: SettingSelectProps<OptionPayload>) => {
return (
<SettingBase {...settingBaseProps}>
- <CustomSelect value={value} options={options} onChange={onChange} />
+ <CustomSelect<OptionPayload> option={option} options={options} onChange={onChange} size="small" />
</SettingBase>
);
};