Skip to content

Commit

Permalink
fix switch label param (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek authored Sep 27, 2023
1 parent 78d7529 commit 4d884f3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/components/ContentProfiles/GroupTab/GroupEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class GroupEditor extends React.PureComponent<IProps> {
<div className="form__group">
<div className="form__row">
<Switch
label={{text: gettext('Use Togglebox')}}
label={{content: gettext('Use Togglebox')}}
value={this.props.group.useToggleBox}

onChange={this.props.updateGroupAttribute.bind(null, 'useToggleBox')}
Expand All @@ -118,7 +118,7 @@ export class GroupEditor extends React.PureComponent<IProps> {
<div className="form__group">
<div className="form__row">
<Switch
label={{text: gettext('Show Bookmark')}}
label={{content: gettext('Show Bookmark')}}
value={this.props.group.showBookmark}

onChange={this.props.updateGroupAttribute.bind(null, 'showBookmark')}
Expand Down
2 changes: 1 addition & 1 deletion client/components/fields/editor/EventSchedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class EditorFieldEventSchedule extends React.PureComponent<IProps> {
{!this.props.showAllDay ? null : (
<div data-test-id={`${this.props.testId}_all_day`}>
<Switch
label={{text: gettext('All Day')}}
label={{content: gettext('All Day')}}
value={isAllDay}
onChange={this.onAllDayChange}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class EditorFieldSelectWithFreeText extends React.Component<IProps, IStat
<label className="sd-input__label">{gettext('Other')}</label>
<div className="sd-input__icon-right">
<Switch
label={{text: gettext('Other'), hidden: true}}
label={{content: gettext('Other'), hidden: true}}
value={this.state.enterFreeText}
onChange={this.toggleFreeText}
disabled={this.props.disabled}
Expand Down
2 changes: 1 addition & 1 deletion client/components/fields/editor/base/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class EditorFieldToggle extends React.PureComponent<IEditorFieldProps> {
<Row testId={this.props.testId}>
<Switch
ref={this.props.refNode}
label={{text: this.props.label}}
label={{content: this.props.label}}
value={value}
onChange={(newValue) => this.props.onChange(this.props.field, newValue)}
disabled={this.props.disabled}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AutopostIngestRuleEditor extends React.PureComponent<IProps> {
return (
<div>
<Switch
label={{text: gettext('Post Items')}}
label={{content: gettext('Post Items')}}
value={this.props.rule.actions.extra?.autopost === true}
onChange={this.updateAutopostValue}
/>
Expand Down

0 comments on commit 4d884f3

Please sign in to comment.