make routing form full width (#8215)

pull/8211/head^2
Peer Richelsen 2023-04-12 04:09:04 +02:00 committed by GitHub
parent c0f7c40bec
commit 46611fdf77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 24 deletions

View File

@ -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>
); );
})} })}