Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update EUI deprecated components in sample screenshot plugin #163409

Merged
merged 3 commits into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions examples/screenshot_mode_example/public/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -82,8 +81,8 @@ export const ScreenshotModeExampleApp = ({
</h1>
</EuiTitle>
</EuiPageHeader>
<EuiPageContent>
<EuiPageContentHeader>
<EuiPageTemplate.Section>
<EuiPageHeader>
<EuiTitle>
<h2>
{isScreenshotMode ? (
Expand All @@ -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>
Expand All @@ -111,8 +110,8 @@ export const ScreenshotModeExampleApp = ({
</p>
)}
</EuiText>
</EuiPageContentBody>
</EuiPageContent>
</EuiPageSection>
</EuiPageTemplate.Section>
</EuiPageBody>
</EuiPage>
</>
Expand Down