Skip to content

Commit

Permalink
Fixes #37749 - Update to Patterfly5
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Sep 6, 2024
1 parent 7eebea6 commit 8ab112d
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { Icon } from 'patternfly-react';
import {
Title,
EmptyState,
EmptyStateVariant,
EmptyStateBody,
EmptyStateSecondaryActions,
EmptyStateActions,
EmptyStateHeader,
EmptyStateFooter,
} from '@patternfly/react-core';
import { emptyStatePatternPropTypes } from './EmptyStatePropTypes';
import { translate as __ } from '../../../common/I18n';
Expand Down Expand Up @@ -48,17 +49,15 @@ const EmptyStatePattern = props => {
{/* TODO: Add pf4 icons, Redmine issue: #30865 */}
<Icon name={icon} type={iconType} size="2x" />
</span>
<Title headingLevel="h5" size="4xl">
{header}
</Title>
<EmptyStateHeader titleText={<>{header}</>} headingLevel="h5" />
<EmptyStateBody>
<div className="empty-state-description">{description}</div>
<DocumentationBlock />
</EmptyStateBody>
{action}
<EmptyStateSecondaryActions>
{secondaryActions}
</EmptyStateSecondaryActions>
<EmptyStateFooter>
{action}
<EmptyStateActions>{secondaryActions}</EmptyStateActions>
</EmptyStateFooter>
</EmptyState>
);
};
Expand Down

0 comments on commit 8ab112d

Please sign in to comment.