Ready for deployment
This commit is contained in:
parent
76a36ed35f
commit
f9c216ad00
10 changed files with 200 additions and 147 deletions
|
|
@ -11,6 +11,7 @@ const SelectField = ({
|
|||
id,
|
||||
options = [],
|
||||
inline = false,
|
||||
defaultOption,
|
||||
register,
|
||||
...props
|
||||
}) => (
|
||||
|
|
@ -23,7 +24,7 @@ const SelectField = ({
|
|||
ref={register}
|
||||
{...props}
|
||||
>
|
||||
<option value="">Select...</option>
|
||||
{defaultOption && <option value="">{defaultOption}</option>}
|
||||
{options.map((value, i) =>
|
||||
<option key={i} value={value}>{value}</option>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue