make routing form full width (#8215)
parent
c0f7c40bec
commit
46611fdf77
|
@ -44,30 +44,28 @@ export default function FormInputFields(props: Props) {
|
||||||
{field.label}
|
{field.label}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex rounded-sm">
|
<Component
|
||||||
<Component
|
value={response[field.id]?.value}
|
||||||
value={response[field.id]?.value}
|
placeholder={field.placeholder ?? ""}
|
||||||
placeholder={field.placeholder ?? ""}
|
// required property isn't accepted by query-builder types
|
||||||
// required property isn't accepted by query-builder types
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
/* @ts-ignore */
|
||||||
/* @ts-ignore */
|
required={!!field.required}
|
||||||
required={!!field.required}
|
listValues={options}
|
||||||
listValues={options}
|
data-testid="form-field"
|
||||||
data-testid="form-field"
|
setValue={(value) => {
|
||||||
setValue={(value) => {
|
setResponse((response) => {
|
||||||
setResponse((response) => {
|
response = response || {};
|
||||||
response = response || {};
|
return {
|
||||||
return {
|
...response,
|
||||||
...response,
|
[field.id]: {
|
||||||
[field.id]: {
|
label: field.label,
|
||||||
label: field.label,
|
value,
|
||||||
value,
|
},
|
||||||
},
|
};
|
||||||
};
|
});
|
||||||
});
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in New Issue