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 {
EuiPage,
EuiPageBody,
EuiPageContent_Deprecated as EuiPageContent,
EuiPageContentBody_Deprecated as EuiPageContentBody,
EuiPageContentHeader_Deprecated as EuiPageContentHeader,
EuiPageTemplate,
EuiPageSection,
EuiPageHeader,
EuiTitle,
EuiText,
@ -82,8 +81,8 @@ export const ScreenshotModeExampleApp = ({
</h1>
</EuiTitle>
</EuiPageHeader>
<EuiPageContent>
<EuiPageContentHeader>
<EuiPageTemplate.Section>
<EuiPageHeader>
<EuiTitle>
<h2>
{isScreenshotMode ? (
@ -99,8 +98,8 @@ export const ScreenshotModeExampleApp = ({
)}
</h2>
</EuiTitle>
</EuiPageContentHeader>
<EuiPageContentBody>
</EuiPageHeader>
<EuiPageSection>
<EuiText>
{isScreenshotMode ? (
<p>We detected screenshot mode. The chrome navbar should be hidden.</p>
@ -111,8 +110,8 @@ export const ScreenshotModeExampleApp = ({
</p>
)}
</EuiText>
</EuiPageContentBody>
</EuiPageContent>
</EuiPageSection>
</EuiPageTemplate.Section>
</EuiPageBody>
</EuiPage>
</>