scripts/apps/authoring-react/authoring-section/get-field-container.tsx
Function getFieldContainer
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getFieldContainer(
useHeaderLayout: boolean,
canBeToggled: boolean,
field: IAuthoringFieldV2,
toggledOn: boolean,
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {miniToolbar, sectionClassNames} = this.props;
return (
<div className={sectionClassNames?.header}>
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {miniToolbar, sectionClassNames} = this.props;
return (
<div className={sectionClassNames?.content}>
Function getFieldContainer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
useHeaderLayout: boolean,
canBeToggled: boolean,
field: IAuthoringFieldV2,
toggledOn: boolean,
toggleField: (fieldId: string) => void,