From 293c1d04f1636583c347876f1bf62956cca767c5 Mon Sep 17 00:00:00 2001 From: Faisal Kanout Date: Fri, 27 Dec 2024 17:23:17 +0100 Subject: [PATCH] Update theme provider --- .../plugins/exploratory_view/public/application/index.tsx | 5 ++--- .../components/shared/exploratory_view/embeddable/index.tsx | 6 ++---- .../components/shared/exploratory_view/rtl_helpers.tsx | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/x-pack/solutions/observability/plugins/exploratory_view/public/application/index.tsx b/x-pack/solutions/observability/plugins/exploratory_view/public/application/index.tsx index cda4cda9d8618..f9b272e3c4f03 100644 --- a/x-pack/solutions/observability/plugins/exploratory_view/public/application/index.tsx +++ b/x-pack/solutions/observability/plugins/exploratory_view/public/application/index.tsx @@ -10,7 +10,7 @@ import ReactDOM from 'react-dom'; import { i18n } from '@kbn/i18n'; import { Router, Routes, Route } from '@kbn/shared-ux-router'; import { AppMountParameters, APP_WRAPPER_CLASS, CoreStart } from '@kbn/core/public'; -import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common'; +import { EuiThemeProvider } from '@elastic/eui'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app'; @@ -53,7 +53,6 @@ export const renderApp = ({ isDev?: boolean; }) => { const { element, history } = appMountParameters; - const isDarkMode = core.theme.getTheme().darkMode; core.chrome.setHelpExtension({ appName: i18n.translate('xpack.exploratoryView.feedbackMenu.appName', { @@ -85,7 +84,7 @@ export const renderApp = ({ }} > - +
{ if (lenStateHelperPromise) { return lenStateHelperPromise; @@ -132,7 +130,7 @@ export function getExploratoryViewEmbeddable( return ( - + >({ return ( - + {children}