Skip to content

Commit

Permalink
fix(messageView): reposition empty state icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Jul 13, 2020
1 parent 96c459e commit 047908c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,6 @@ exports[`Authentication Component should render a non-connected component error:
<div
className="pf-c-empty-state__content"
>
<Title
headingLevel="h2"
size="lg"
>
<h2
className="pf-c-title pf-m-lg"
>
t(curiosity-auth.authorizedTitle, [object Object])
</h2>
</Title>
<EmptyStateIcon
icon={[Function]}
>
Expand Down Expand Up @@ -154,6 +144,16 @@ exports[`Authentication Component should render a non-connected component error:
</svg>
</LockIcon>
</EmptyStateIcon>
<Title
headingLevel="h2"
size="lg"
>
<h2
className="pf-c-title pf-m-lg"
>
t(curiosity-auth.authorizedTitle, [object Object])
</h2>
</Title>
<EmptyStateBody>
<div
className="pf-c-empty-state__body"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ exports[`MessageView Component should render a non-connected component: non-conn
className="fadein"
variant="full"
>
<EmptyStateIcon
icon={[Function]}
/>
<Title
headingLevel="h2"
size="lg"
>
lorem
</Title>
<EmptyStateIcon
icon={[Function]}
/>
<EmptyStateBody>
ipsum
</EmptyStateBody>
Expand Down
2 changes: 1 addition & 1 deletion src/components/messageView/messageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const MessageView = ({ icon, message, pageTitle, title }) => (
<PageLayout>
<PageHeader>{pageTitle || helpers.UI_DISPLAY_NAME}</PageHeader>
<PfEmptyState variant={EmptyStateVariant.full} className="fadein">
{icon && <EmptyStateIcon icon={icon} />}
{title && (
<Title headingLevel="h2" size="lg">
{title}
</Title>
)}
{icon && <EmptyStateIcon icon={icon} />}
{message && <EmptyStateBody>{message}</EmptyStateBody>}
</PfEmptyState>
</PageLayout>
Expand Down

0 comments on commit 047908c

Please sign in to comment.