mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[Tech Debt] Remove deprecated EuiLoadingContent
(#156316)
## Summary This PR removes the deprecated `EuiLoadingContent` in favour of the new `EuiSkeletonText` + `EuiSkeletonRectangle` components in all Presentation-owned files. cc @elastic/eui-team ### Checklist - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
d00e2a366f
commit
91635994fd
4 changed files with 39 additions and 43 deletions
|
@ -14,11 +14,11 @@ import {
|
|||
EuiButtonGroup,
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
EuiLoadingContent,
|
||||
EuiPanel,
|
||||
EuiSpacer,
|
||||
EuiText,
|
||||
EuiTitle,
|
||||
EuiSkeletonRectangle,
|
||||
} from '@elastic/eui';
|
||||
import { ViewMode } from '@kbn/embeddable-plugin/public';
|
||||
import { OPTIONS_LIST_CONTROL, RANGE_SLIDER_CONTROL } from '@kbn/controls-plugin/common';
|
||||
|
@ -77,7 +77,7 @@ export const EditExample = () => {
|
|||
setIsLoading(true);
|
||||
|
||||
// simulated async load await
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
await new Promise((resolve) => setTimeout(resolve, 6000));
|
||||
|
||||
let input: Partial<ControlGroupInput> = {};
|
||||
const inputAsString = localStorage.getItem(INPUT_KEY);
|
||||
|
@ -180,7 +180,7 @@ export const EditExample = () => {
|
|||
{isLoading ? (
|
||||
<>
|
||||
<EuiSpacer />
|
||||
<EuiLoadingContent lines={1} />
|
||||
<EuiSkeletonRectangle width="100%" height="2em" />
|
||||
</>
|
||||
) : null}
|
||||
<ControlGroupRenderer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue