diff --git a/scm-ui/ui-components/src/layout/Page.tsx b/scm-ui/ui-components/src/layout/Page.tsx index 59401c2e0d..9f1e749912 100644 --- a/scm-ui/ui-components/src/layout/Page.tsx +++ b/scm-ui/ui-components/src/layout/Page.tsx @@ -94,7 +94,7 @@ export default class Page extends React.Component { } renderPageHeader() { - const { error, afterTitle, subtitle, children } = this.props; + const { error, afterTitle, title, subtitle, children } = this.props; let pageActions = null; let pageActionsExists = false; @@ -114,21 +114,24 @@ export default class Page extends React.Component { }); const underline = pageActionsExists ?
: null; - return ( - <> -
-
- - {this.getTitleComponent()} - {afterTitle && {afterTitle}} - - + if (title || subtitle) { + return ( + <> +
+
+ + {this.getTitleComponent()} + {afterTitle && {afterTitle}} + + +
+ {pageActions}
- {pageActions} -
- {underline} - - ); + {underline} + + ); + } + return null; } renderContent() {