mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
[Console] Migrate all usages of EuiPage*_Deprecated (#163138)
This commit is contained in:
parent
1ab6a4cb26
commit
8ffbc7164d
2 changed files with 6 additions and 11 deletions
|
@ -7,12 +7,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
import { EuiSkeletonText, EuiPageContent_Deprecated as EuiPageContent } from '@elastic/eui';
|
import { EuiSkeletonText, EuiPageSection } from '@elastic/eui';
|
||||||
|
|
||||||
export const EditorContentSpinner: FunctionComponent = () => {
|
export const EditorContentSpinner: FunctionComponent = () => {
|
||||||
return (
|
return (
|
||||||
<EuiPageContent className="conApp__editor__spinner">
|
<EuiPageSection className="conApp__editor__spinner">
|
||||||
<EuiSkeletonText lines={10} />
|
<EuiSkeletonText lines={10} />
|
||||||
</EuiPageContent>
|
</EuiPageSection>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,12 +8,7 @@
|
||||||
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import {
|
import { EuiFlexGroup, EuiFlexItem, EuiTitle, EuiPageTemplate } from '@elastic/eui';
|
||||||
EuiFlexGroup,
|
|
||||||
EuiFlexItem,
|
|
||||||
EuiTitle,
|
|
||||||
EuiPageContent_Deprecated as EuiPageContent,
|
|
||||||
} from '@elastic/eui';
|
|
||||||
import { ConsoleHistory } from '../console_history';
|
import { ConsoleHistory } from '../console_history';
|
||||||
import { Editor } from '../editor';
|
import { Editor } from '../editor';
|
||||||
import { Settings } from '../settings';
|
import { Settings } from '../settings';
|
||||||
|
@ -64,9 +59,9 @@ export function Main() {
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return (
|
return (
|
||||||
<EuiPageContent>
|
<EuiPageTemplate.EmptyPrompt color="danger">
|
||||||
<SomethingWentWrongCallout onButtonClick={retry} error={error} />
|
<SomethingWentWrongCallout onButtonClick={retry} error={error} />
|
||||||
</EuiPageContent>
|
</EuiPageTemplate.EmptyPrompt>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue