more
This commit is contained in:
@@ -12,10 +12,12 @@ const TextInput = (props) => {
|
||||
values,
|
||||
onChange,
|
||||
id,
|
||||
state,
|
||||
type,
|
||||
disabled,
|
||||
} = props;
|
||||
|
||||
const isFlorida = state === "fl";
|
||||
console.log("values", values);
|
||||
return (
|
||||
<div
|
||||
className={
|
||||
@@ -45,15 +47,19 @@ const TextInput = (props) => {
|
||||
className={`select-option`}
|
||||
value=""
|
||||
></option>
|
||||
{values.map((item, i) => (
|
||||
<option
|
||||
id="ddlProducts"
|
||||
className={`select-option`}
|
||||
key={`item${i}`}
|
||||
>
|
||||
{item}
|
||||
</option>
|
||||
))}
|
||||
{values && values != undefined ? (
|
||||
values.map((item, i) => (
|
||||
<option
|
||||
id="ddlProducts"
|
||||
className={`select-option`}
|
||||
key={`item${i}`}
|
||||
>
|
||||
{isFlorida ? `${item.circuit} Judicial Circuit` : item}
|
||||
</option>
|
||||
))
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</select>
|
||||
) : (
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user