summaryrefslogtreecommitdiff
path: root/src/components/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/shared')
-rw-r--r--src/components/shared/Select.tsx7
1 files changed, 3 insertions, 4 deletions
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}