From 2a421573de1cd0f518f64de7204d8929a96c8124 Mon Sep 17 00:00:00 2001
From: kunish <kunish.butt@gmail.com>
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<string[]>;
   selected: string;
-  onChange: (event: React.ChangeEvent<HTMLSelectElement>) => any;
-};
+} & React.SelectHTMLAttributes<HTMLSelectElement>;
 
-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
-    <select className={s.select} value={selected} onChange={onChange}>
+    <select className={s.select} value={selected} onChange={onChange} {...props}>
       {options.map(([value, name]) => (
         <option key={value} value={value}>
           {name}
-- 
cgit v1.3.1

