Update EUI deprecated components in sample screenshot plugin (#163409)

## Summary

Closes https://github.com/elastic/kibana/issues/161425
This commit is contained in:
Vadim Kibana 2023-08-08 16:45:45 +02:00 committed by GitHub
parent b62747e085
commit c13dcf47c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,9 +13,8 @@ import { FormattedMessage, I18nProvider } from '@kbn/i18n-react';
import { import {
EuiPage, EuiPage,
EuiPageBody, EuiPageBody,
EuiPageContent_Deprecated as EuiPageContent, EuiPageTemplate,
EuiPageContentBody_Deprecated as EuiPageContentBody, EuiPageSection,
EuiPageContentHeader_Deprecated as EuiPageContentHeader,
EuiPageHeader, EuiPageHeader,
EuiTitle, EuiTitle,
EuiText, EuiText,
@ -82,8 +81,8 @@ export const ScreenshotModeExampleApp = ({
</h1> </h1>
</EuiTitle> </EuiTitle>
</EuiPageHeader> </EuiPageHeader>
<EuiPageContent> <EuiPageTemplate.Section>
<EuiPageContentHeader> <EuiPageHeader>
<EuiTitle> <EuiTitle>
<h2> <h2>
{isScreenshotMode ? ( {isScreenshotMode ? (
@ -99,8 +98,8 @@ export const ScreenshotModeExampleApp = ({
)} )}
</h2> </h2>
</EuiTitle> </EuiTitle>
</EuiPageContentHeader> </EuiPageHeader>
<EuiPageContentBody> <EuiPageSection>
<EuiText> <EuiText>
{isScreenshotMode ? ( {isScreenshotMode ? (
<p>We detected screenshot mode. The chrome navbar should be hidden.</p> <p>We detected screenshot mode. The chrome navbar should be hidden.</p>
@ -111,8 +110,8 @@ export const ScreenshotModeExampleApp = ({
</p> </p>
)} )}
</EuiText> </EuiText>
</EuiPageContentBody> </EuiPageSection>
</EuiPageContent> </EuiPageTemplate.Section>
</EuiPageBody> </EuiPageBody>
</EuiPage> </EuiPage>
</> </>