Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonidoo committed Apr 24, 2024
1 parent 1ccc840 commit 88c27e8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion scripts/apps/authoring-react/authoring-react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,6 @@ export class AuthoringReact<T extends IBaseRestApiResponse> extends React.PureCo
readOnly={readOnly}
validationErrors={state.validationErrors}
item={state.itemWithChanges}
sectionClassNames={{header: 'sd-input-style'}}
/>
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ interface IProps<T> {
getVocabularyItems: IPropsAuthoringSection<T>['getVocabularyItems'];
validationError?: string;
uiTheme?: IAuthoringSectionTheme;
sectionClassNames?: IAuthoringSectionClassNames;
item: T;
}

Expand Down Expand Up @@ -60,7 +59,6 @@ export class AuthoringSectionField<T> extends React.PureComponent<IProps<T>> {
fontSize: this.props.uiTheme.fieldTheme[field.id]?.fontSize,
fontFamily: this.props.uiTheme.fontFamily,
}}
sectionClassNames={this.props.sectionClassNames}
key={field.id}
editorId={field.id}
container={Container}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export interface IPropsAuthoringSection<T> {
validationErrors: IAuthoringValidationErrors;
padding?: string | number;
uiTheme?: IAuthoringSectionTheme;
sectionClassNames?: IAuthoringSectionClassNames;
item: T;
}

Expand Down Expand Up @@ -102,7 +101,6 @@ export class AuthoringSection<T> extends React.PureComponent<IPropsAuthoringSect
<div key={field.id} style={{width: `${field.fieldConfig.width}%`}}>
<AuthoringSectionField
uiTheme={themeApplies ? this.props.uiTheme : undefined}
sectionClassNames={this.props.sectionClassNames}
field={field}
fieldsData={this.props.fieldsData}
onChange={this.props.onChange}
Expand Down
2 changes: 1 addition & 1 deletion scripts/apps/authoring-react/fields/editor3/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export class Editor extends React.PureComponent<IProps, IState> {
const HelperComponent = this.props.config.helperComponent;

return (
<Container miniToolbar={miniToolbar} sectionClassNames={this.props.sectionClassNames}>
<Container miniToolbar={miniToolbar} sectionClassNames={{header: 'sd-input-style'}}>
{
HelperComponent != null && (
<HelperComponent
Expand Down
1 change: 0 additions & 1 deletion scripts/core/superdesk-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3459,7 +3459,6 @@ declare module 'superdesk-api' {
fontSize: string;
fontFamily: string;
};
sectionClassNames?: IAuthoringSectionClassNames;
item: any;
}

Expand Down

0 comments on commit 88c27e8

Please sign in to comment.