Minor fixes

This commit is contained in:
HarelM
2023-12-22 09:58:13 +02:00
parent 6c9f0fefc9
commit de777102e1
2 changed files with 4 additions and 8 deletions

View File

@@ -10,10 +10,8 @@ type FieldAutocompleteProps = InputAutocompleteProps & {
export default class FieldAutocomplete extends React.Component<FieldAutocompleteProps> {
render() {
const {props} = this;
return <Block label={props.label}>
<InputAutocomplete {...props} />
return <Block label={this.props.label}>
<InputAutocomplete {...this.props} />
</Block>
}
}

View File

@@ -10,10 +10,8 @@ type FieldMultiInputProps = InputMultiInputProps & {
export default class FieldMultiInput extends React.Component<FieldMultiInputProps> {
render() {
const {props} = this;
return <Fieldset label={props.label}>
<InputMultiInput {...props} />
return <Fieldset label={this.props.label}>
<InputMultiInput {...this.props} />
</Fieldset>
}
}