diff --git a/scm-ui-components/packages/ui-components/src/layout/Page.js b/scm-ui-components/packages/ui-components/src/layout/Page.js index a034b4afbb..dc4d32a75c 100644 --- a/scm-ui-components/packages/ui-components/src/layout/Page.js +++ b/scm-ui-components/packages/ui-components/src/layout/Page.js @@ -6,6 +6,7 @@ import Title from "./Title"; import Subtitle from "./Subtitle"; import injectSheet from "react-jss"; import classNames from "classnames"; +import PageActions from "./PageActions"; type Props = { title?: string, @@ -46,7 +47,7 @@ class Page extends React.Component { let content = null; let pageActionsExists = false; React.Children.forEach(children, child => { - if (child && child.type.name === "PageActions") { + if (child && child.type.name === PageActions.name) { content = child; pageActionsExists = true; }