Skip to content

Commit

Permalink
Replace use of isEmptyState with centeredContent template.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 28, 2021
1 parent b704ef1 commit f907a08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const EditPolicy: React.FunctionComponent<Props & RouteComponentProps<Rou

if (isLoading) {
return (
<ManagementPageLayout isEmptyState={true}>
<ManagementPageLayout template="centeredContent">
<EuiEmptyPrompt
title={<EuiLoadingSpinner size="xl" />}
body={
Expand All @@ -69,7 +69,7 @@ export const EditPolicy: React.FunctionComponent<Props & RouteComponentProps<Rou
if (error || !policies) {
const { statusCode, message } = error ? error : { statusCode: '', message: '' };
return (
<ManagementPageLayout isEmptyState={true}>
<ManagementPageLayout template="centeredContent">
<EuiEmptyPrompt
title={
<h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const PolicyTable: React.FunctionComponent<Props & RouteComponentProps> =

if (isLoading) {
return (
<ManagementPageLayout isEmptyState={true}>
<ManagementPageLayout template="centeredContent">
<EuiEmptyPrompt
title={<EuiLoadingSpinner size="xl" />}
body={
Expand All @@ -51,7 +51,7 @@ export const PolicyTable: React.FunctionComponent<Props & RouteComponentProps> =
if (error) {
const { statusCode, message } = error ? error : { statusCode: '', message: '' };
return (
<ManagementPageLayout isEmptyState={true}>
<ManagementPageLayout template="centeredContent">
<EuiEmptyPrompt
title={
<h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const PolicyTable: React.FunctionComponent<Props> = ({
);
} else {
return (
<ManagementPageLayout isEmptyState={true}>
<ManagementPageLayout template="centeredContent">
<EuiEmptyPrompt
iconType="managementApp"
title={
Expand Down

0 comments on commit f907a08

Please sign in to comment.