mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
defining class attribute instead of using component name
This commit is contained in:
@@ -51,7 +51,7 @@ class Page extends React.Component<Props> {
|
||||
let pageActionsExists = false;
|
||||
React.Children.forEach(children, child => {
|
||||
if (child && !error) {
|
||||
if (child.type.name === PageActions.name) {
|
||||
if (child.displayName === PageActions.displayName) {
|
||||
pageActions = (
|
||||
<div
|
||||
className={classNames(
|
||||
@@ -97,7 +97,7 @@ class Page extends React.Component<Props> {
|
||||
let content = [];
|
||||
React.Children.forEach(children, child => {
|
||||
if (child) {
|
||||
if (child.type.name !== PageActions.name) {
|
||||
if (child.displayName !== PageActions.displayName) {
|
||||
content.push(child);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user