Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Dec 22, 2023
1 parent 6c9f0fe commit de77710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/components/FieldAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
}
Expand Down
6 changes: 2 additions & 4 deletions src/components/FieldMultiInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
}
Expand Down

0 comments on commit de77710

Please sign in to comment.