UI: fix interface breakages on some components. Features will be migrated later

This commit is contained in:
Johannes Kirschbauer
2024-12-20 20:14:42 +01:00
parent 7cd061472d
commit 365e80368c
5 changed files with 19 additions and 18 deletions

View File

@@ -248,7 +248,7 @@ export function StringField<T extends FieldValues, R extends ResponseData>(
{(options) => (
<SelectInput
error={field.error}
altLabel={props.schema.title}
// altLabel={props.schema.title}
label={props.path.join(".")}
helperText={props.schema.description}
value={field.value || []}
@@ -276,7 +276,7 @@ export function StringField<T extends FieldValues, R extends ResponseData>(
<TextInput
inputProps={{ ...fieldProps, readonly }}
value={field.value as unknown as string}
type="password"
// type="password"
error={field.error}
{...commonProps}
// required
@@ -525,7 +525,7 @@ export function ArrayFields<T extends FieldValues, R extends ResponseData>(
<SelectInput
multiple
error={field.error}
altLabel={props.schema.title}
// altLabel={props.schema.title}
label={listFieldName}
helperText={props.schema.description}
value={field.value || ""}