diff --git a/app-typescript/components/Layouts/AuthoringInnerHeader.tsx b/app-typescript/components/Layouts/AuthoringInnerHeader.tsx index 4d20b863..491c9527 100644 --- a/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +++ b/app-typescript/components/Layouts/AuthoringInnerHeader.tsx @@ -1,11 +1,11 @@ import * as React from 'react'; import classNames from 'classnames'; -import { Icon } from '../Icon'; +import {Icon} from '../Icon'; interface IProps { children?: React.ReactNode; collapsed?: boolean; - headerPadding?: 'small' | 'medium' | 'large'; + headerStyles?: string; } interface IState { collapsed: boolean; @@ -21,17 +21,21 @@ export class AuthoringInnerHeader extends React.PureComponent { } render() { - let classes = classNames('sd-editor-content__authoring-header', { - 'authoring-header--collapsed': this.state.collapsed, - [`authoring-header--padding-${this.props.headerPadding}`]: this.props.headerPadding, - }); + const classes = classNames( + 'sd-editor-content__authoring-header', + { + 'authoring-header--collapsed': this.state.collapsed, + [`${this.props.headerStyles}`]: this.props.headerStyles, + }, + ); + return (
{this.props.children}
diff --git a/app-typescript/components/Layouts/AuthoringMain.tsx b/app-typescript/components/Layouts/AuthoringMain.tsx index 0934668b..1e409c53 100644 --- a/app-typescript/components/Layouts/AuthoringMain.tsx +++ b/app-typescript/components/Layouts/AuthoringMain.tsx @@ -14,9 +14,9 @@ interface IProps { toolBar?: React.ReactNode; authoringMain?: React.ReactNode; authoringHeader?: React.ReactNode; + headerStyles?: string; authoringBookmarks?: React.ReactNode; headerCollapsed?: boolean; - headerPadding?: 'small' | 'medium' | 'large'; toolbarCustom?: boolean; noPaddingForContent?: boolean; } @@ -33,10 +33,11 @@ export class AuthoringMain extends React.PureComponent { {this.props.authoringHeader && ( + headerStyles={this.props.headerStyles} + collapsed={this.props.headerCollapsed} + > {this.props.authoringHeader} - + )} {this.props.authoringBookmarks && ( diff --git a/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx b/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx index 86b3fc37..9f8319f7 100644 --- a/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +++ b/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx @@ -122,7 +122,7 @@ export class EditorTest extends React.Component { )} main={(
diff --git a/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx b/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx index e457345d..b6929100 100644 --- a/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +++ b/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx @@ -134,7 +134,7 @@ export class Editor extends React.Component<{}, IEditor> { )} main={(
diff --git a/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx b/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx index 22c5cb6c..b75c868f 100644 --- a/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +++ b/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx @@ -147,7 +147,7 @@ export class RundownEditor extends React.Component { -