Skip to content

Commit

Permalink
Change EuiLoadingElastic to EuiLoadingSpinner (#337)
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh authored May 8, 2021
1 parent fb2f793 commit e73c536
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/plugins/newsfeed/public/components/loading_news.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ import React from 'react';
import { FormattedMessage } from '@osd/i18n/react';

import { EuiEmptyPrompt } from '@elastic/eui';
import { EuiLoadingElastic } from '@elastic/eui';
import { EuiLoadingSpinner } from '@elastic/eui';

export const NewsLoadingPrompt = () => {
return (
<EuiEmptyPrompt
title={<EuiLoadingElastic size="xl" />}
title={<EuiLoadingSpinner size="xl" />}
body={
<p>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
EuiSelect,
EuiFlexGroup,
EuiFlexItem,
EuiLoadingElastic,
EuiLoadingSpinner,
EuiCallOut,
EuiSpacer,
EuiLink,
Expand Down Expand Up @@ -624,7 +624,7 @@ export class Flyout extends Component<FlyoutProps, FlyoutState> {
return (
<EuiFlexGroup justifyContent="spaceAround">
<EuiFlexItem grow={false}>
<EuiLoadingElastic size="xl" />
<EuiLoadingSpinner size="xl" />
<EuiSpacer size="m" />
<EuiText>
<p>{loadingMessage}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Relationships', () => {
const component = shallowWithI18nProvider(<Relationships {...props} />);

// Make sure we are showing loading
expect(component.find('EuiLoadingElastic').length).toBe(1);
expect(component.find('EuiLoadingSpinner').length).toBe(1);

// Ensure all promises resolve
await new Promise((resolve) => process.nextTick(resolve));
Expand Down Expand Up @@ -167,7 +167,7 @@ describe('Relationships', () => {
const component = shallowWithI18nProvider(<Relationships {...props} />);

// Make sure we are showing loading
expect(component.find('EuiLoadingElastic').length).toBe(1);
expect(component.find('EuiLoadingSpinner').length).toBe(1);

// Ensure all promises resolve
await new Promise((resolve) => process.nextTick(resolve));
Expand Down Expand Up @@ -234,7 +234,7 @@ describe('Relationships', () => {
const component = shallowWithI18nProvider(<Relationships {...props} />);

// Make sure we are showing loading
expect(component.find('EuiLoadingElastic').length).toBe(1);
expect(component.find('EuiLoadingSpinner').length).toBe(1);

// Ensure all promises resolve
await new Promise((resolve) => process.nextTick(resolve));
Expand Down Expand Up @@ -301,7 +301,7 @@ describe('Relationships', () => {
const component = shallowWithI18nProvider(<Relationships {...props} />);

// Make sure we are showing loading
expect(component.find('EuiLoadingElastic').length).toBe(1);
expect(component.find('EuiLoadingSpinner').length).toBe(1);

// Ensure all promises resolve
await new Promise((resolve) => process.nextTick(resolve));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
EuiLink,
EuiIcon,
EuiCallOut,
EuiLoadingElastic,
EuiLoadingSpinner,
EuiInMemoryTable,
EuiToolTip,
EuiText,
Expand Down Expand Up @@ -132,7 +132,7 @@ export class Relationships extends Component<RelationshipsProps, RelationshipsSt
}

if (isLoading) {
return <EuiLoadingElastic size="xl" />;
return <EuiLoadingSpinner size="xl" />;
}

const columns = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
EuiInMemoryTable,
EuiIcon,
EuiConfirmModal,
EuiLoadingElastic,
EuiLoadingSpinner,
EuiOverlayMask,
EUI_MODAL_CONFIRM_BUTTON,
EuiCheckboxGroup,
Expand Down Expand Up @@ -558,7 +558,7 @@ export class SavedObjectsTable extends Component<SavedObjectsTableProps, SavedOb

if (isDeleting) {
// Block the user from interacting with the table while its contents are being deleted.
modal = <EuiLoadingElastic size="xl" />;
modal = <EuiLoadingSpinner size="xl" />;
} else {
const onCancel = () => {
this.setState({ isShowingDeleteConfirmModal: false });
Expand Down

0 comments on commit e73c536

Please sign in to comment.