summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Select/HookFormSelect.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/components/elements/Select/HookFormSelect.jsx')
-rw-r--r--src/core/components/elements/Select/HookFormSelect.jsx13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/core/components/elements/Select/HookFormSelect.jsx b/src/core/components/elements/Select/HookFormSelect.jsx
index 45cd89b6..055a9c68 100644
--- a/src/core/components/elements/Select/HookFormSelect.jsx
+++ b/src/core/components/elements/Select/HookFormSelect.jsx
@@ -1,17 +1,14 @@
-import ReactSelect from "react-select"
+import ReactSelect from 'react-select'
-const HookFormSelect = ({
- field,
- ...props
-}) => (
+const HookFormSelect = ({ field, ...props }) => (
<ReactSelect
- classNamePrefix="form-select"
+ classNamePrefix='form-select'
ref={field.ref}
onChange={(option) => field.onChange(option.value)}
- value={field.value ? props.options.find(option => option.value === field.value) : ''}
+ value={field.value ? props.options.find((option) => option.value === field.value) : ''}
isDisabled={props.disabled}
{...props}
/>
)
-export default HookFormSelect \ No newline at end of file
+export default HookFormSelect