Skip to content

Commit

Permalink
wraps prepend with i18n and fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Lu Yu <[email protected]>
  • Loading branch information
BionIT committed Jan 30, 2024
1 parent ffafd92 commit 4e83603
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class DataSourcePicker extends React.Component {
});
}

onChang(e) {
onChange(e) {
if (!this._isMounted) return;
this.setState({
selectedOption: e,
Expand All @@ -77,8 +77,10 @@ export class DataSourcePicker extends React.Component {
singleSelection={{ asPlainText: true }}
options={this.state.dataSources}
selectedOptions={this.state.selectedOption}
onChange={(e) => this.onChang(e)}
prepend="Data source"
onChange={(e) => this.onChange(e)}
prepend={i18n.translate('dataSourceComboBoxPrepend', {
defaultMessage: 'Data source',
})}
compressed
isDisabled={this.props.disabled}
/>
Expand Down

0 comments on commit 4e83603

Please sign in to comment.