blob: 3db8bfdd4355be11311e0a5f7715228380685d97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import ReactSelect from "react-select";
const Select = ({
options,
name,
setFieldValue,
value,
disabled
}) => (
<ReactSelect
classNamePrefix="form-select"
options={options}
name={name}
onChange={(option) => setFieldValue(name, option.value)}
value={value ? options.find(option => option.value === value) : ''}
isDisabled={disabled}
/>
);
export {
Select
};
|