From 2a421573de1cd0f518f64de7204d8929a96c8124 Mon Sep 17 00:00:00 2001 From: kunish Date: Tue, 28 Feb 2023 15:49:53 +0800 Subject: fix: i18n not following system language setting --- src/components/shared/Select.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/components/shared/Select.tsx') diff --git a/src/components/shared/Select.tsx b/src/components/shared/Select.tsx index de409cb..8d00f43 100644 --- a/src/components/shared/Select.tsx +++ b/src/components/shared/Select.tsx @@ -5,13 +5,12 @@ import s from './Select.module.scss'; type Props = { options: Array; selected: string; - onChange: (event: React.ChangeEvent) => any; -}; +} & React.SelectHTMLAttributes; -export default function Select({ options, selected, onChange }: Props) { +export default function Select({ options, selected, onChange, ...props }: Props) { return ( // eslint-disable-next-line jsx-a11y/no-onchange - {options.map(([value, name]) => (