mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
Fix string comparison with class name
This commit is contained in:
@@ -6,6 +6,7 @@ import Title from "./Title";
|
|||||||
import Subtitle from "./Subtitle";
|
import Subtitle from "./Subtitle";
|
||||||
import injectSheet from "react-jss";
|
import injectSheet from "react-jss";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
import PageActions from "./PageActions";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title?: string,
|
title?: string,
|
||||||
@@ -46,7 +47,7 @@ class Page extends React.Component<Props> {
|
|||||||
let content = null;
|
let content = null;
|
||||||
let pageActionsExists = false;
|
let pageActionsExists = false;
|
||||||
React.Children.forEach(children, child => {
|
React.Children.forEach(children, child => {
|
||||||
if (child && child.type.name === "PageActions") {
|
if (child && child.type.name === PageActions.name) {
|
||||||
content = child;
|
content = child;
|
||||||
pageActionsExists = true;
|
pageActionsExists = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user