Skip to content

Commit

Permalink
[Watcher] Fix loading section
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliacech committed Aug 22, 2023
1 parent 99fe00c commit 8bfe096
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
*/

import React, { useEffect, useState } from 'react';
import { EuiSpacer, EuiToolTip, EuiBadge, EuiButtonEmpty, EuiPageHeader } from '@elastic/eui';
import {
EuiSpacer,
EuiToolTip,
EuiBadge,
EuiButtonEmpty,
EuiPageHeader,
EuiPageTemplate,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';

Expand Down Expand Up @@ -70,12 +77,14 @@ export const WatchStatusPage = ({

if (isWatchDetailLoading) {
return (
<SectionLoading>
<FormattedMessage
id="xpack.watcher.sections.watchStatus.loadingWatchDetailsDescription"
defaultMessage="Loading watch details…"
/>
</SectionLoading>
<EuiPageTemplate.EmptyPrompt>
<SectionLoading>
<FormattedMessage
id="xpack.watcher.sections.watchStatus.loadingWatchDetailsDescription"
defaultMessage="Loading watch details…"
/>
</SectionLoading>
</EuiPageTemplate.EmptyPrompt>
);
}

Expand Down

0 comments on commit 8bfe096

Please sign in to comment.