From 351cf1efa111dc61686d01921c17eaf07648dcbf Mon Sep 17 00:00:00 2001 From: Kevin Delemme Date: Fri, 22 Nov 2024 08:52:09 -0500 Subject: [PATCH] fix(slo): remove KibanaThemeProvider' (#201257) (cherry picked from commit 455a075495e5857fbf3a1c885c5836dc8a0611f5) --- .../slo/public/application.tsx | 65 +++++++++---------- .../observability_solution/slo/tsconfig.json | 1 - 2 files changed, 31 insertions(+), 35 deletions(-) diff --git a/x-pack/plugins/observability_solution/slo/public/application.tsx b/x-pack/plugins/observability_solution/slo/public/application.tsx index abd85fc712c0e..12019ae1fdf75 100644 --- a/x-pack/plugins/observability_solution/slo/public/application.tsx +++ b/x-pack/plugins/observability_solution/slo/public/application.tsx @@ -13,7 +13,6 @@ import { Storage } from '@kbn/kibana-utils-plugin/public'; import { ObservabilityRuleTypeRegistry } from '@kbn/observability-plugin/public'; import type { LazyObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; -import { KibanaThemeProvider } from '@kbn/react-kibana-context-theme'; import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app'; import { Route, Router, Routes } from '@kbn/shared-ux-router'; import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/public'; @@ -53,7 +52,7 @@ export const renderApp = ({ experimentalFeatures, sloClient, }: Props) => { - const { element, history, theme$ } = appMountParameters; + const { element, history } = appMountParameters; // ensure all divs are .kbnAppWrappers element.classList.add(APP_WRAPPER_CLASS); @@ -90,42 +89,40 @@ export const renderApp = ({ ReactDOM.render( - - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + , element diff --git a/x-pack/plugins/observability_solution/slo/tsconfig.json b/x-pack/plugins/observability_solution/slo/tsconfig.json index be74e370a1fc1..02a2ea06cc527 100644 --- a/x-pack/plugins/observability_solution/slo/tsconfig.json +++ b/x-pack/plugins/observability_solution/slo/tsconfig.json @@ -24,7 +24,6 @@ "@kbn/observability-plugin", "@kbn/observability-shared-plugin", "@kbn/kibana-react-plugin", - "@kbn/react-kibana-context-theme", "@kbn/shared-ux-link-redirect-app", "@kbn/kibana-utils-plugin", "@kbn/slo-schema",