diff --git a/x-pack/plugins/screenshotting/public/app/app.tsx b/x-pack/plugins/screenshotting/public/app/app.tsx index 06d79b7a3fb97..fac214a20be2d 100644 --- a/x-pack/plugins/screenshotting/public/app/app.tsx +++ b/x-pack/plugins/screenshotting/public/app/app.tsx @@ -7,14 +7,6 @@ import './app.scss'; import React, { useContext, useMemo, useRef } from 'react'; -import { - EuiFlexGroup, - EuiFlexItem, - EuiPage, - EuiPageBody, - EuiPageContent_Deprecated as EuiPageContent, - EuiPageContentBody_Deprecated as EuiPageContentBody, -} from '@elastic/eui'; import type { ExpressionRendererParams } from '@kbn/expressions-plugin/public'; import { useExpressionRenderer } from '@kbn/expressions-plugin/public'; import { SCREENSHOTTING_EXPRESSION, SCREENSHOTTING_EXPRESSION_INPUT } from '../../common'; @@ -40,28 +32,16 @@ export function App() { }); return ( - - - - - - -
- - - - - - +
); } diff --git a/x-pack/plugins/screenshotting/public/plugin.tsx b/x-pack/plugins/screenshotting/public/plugin.tsx index 68707cc16ed72..f50291eff46fd 100755 --- a/x-pack/plugins/screenshotting/public/plugin.tsx +++ b/x-pack/plugins/screenshotting/public/plugin.tsx @@ -21,26 +21,24 @@ interface SetupDeps { export class ScreenshottingPlugin implements Plugin { setup({ application }: CoreSetup, { screenshotMode }: SetupDeps) { - if (!screenshotMode.isScreenshotMode()) { - return; - } - - application.register({ - id: SCREENSHOTTING_APP_ID, - title: 'Screenshotting Expressions Renderer', - navLinkStatus: AppNavLinkStatus.hidden, - chromeless: true, + if (screenshotMode.isScreenshotMode()) { + application.register({ + id: SCREENSHOTTING_APP_ID, + title: 'Screenshotting Expressions Renderer', + navLinkStatus: AppNavLinkStatus.hidden, + chromeless: true, - mount: async ({ element }: AppMountParameters) => { - ReactDOM.render( - - - , - element - ); - return () => ReactDOM.unmountComponentAtNode(element); - }, - }); + mount: async ({ element }: AppMountParameters) => { + ReactDOM.render( + + + , + element + ); + return () => ReactDOM.unmountComponentAtNode(element); + }, + }); + } } start() {}