diff --git a/components/Forms/formComponents/Select.js b/components/Forms/formComponents/Select.js index 170a2ef..ac6daf2 100644 --- a/components/Forms/formComponents/Select.js +++ b/components/Forms/formComponents/Select.js @@ -1,6 +1,6 @@ import { forwardRef } from 'react' -import {v4 as uuid} from 'uuid' + const Select = forwardRef(function Select(props, ref) { @@ -12,7 +12,7 @@ const Select = forwardRef(function Select(props, ref) { className='flex-none w-full p-2 border border-gray-800 rounded bg-transparent flex-grow placeholder-gray-200 focus:border-black outline-none'> { ((_options) => _options.map(({ value, label }, i) => - + ))(props.options?.length ? [{label:props.placeholder ?? "Select option..", value:""}, ...props.options] : []) }