Skip to content

Commit

Permalink
update the theme provide
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanout committed Dec 19, 2024
1 parent 12a3302 commit b3a6748
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { AppMountParameters, APP_WRAPPER_CLASS, CoreStart } from '@kbn/core/public';
import { PerformanceContextProvider } from '@kbn/ebt-tools';
import { EuiThemeProvider } from '@kbn/kibana-react-plugin/common';
import { EuiThemeProvider } from '@elastic/eui';
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
import { Storage } from '@kbn/kibana-utils-plugin/public';
import type { LazyObservabilityPageTemplateProps } from '@kbn/observability-shared-plugin/public';
Expand Down Expand Up @@ -44,7 +44,6 @@ export function renderApp({
entityClient: EntityClient;
}) {
const { element, history, theme$ } = appMountParameters;
const isDarkMode = core.theme.getTheme().darkMode;

// ensure all divs are .kbnAppWrappers
element.classList.add(APP_WRAPPER_CLASS);
Expand Down Expand Up @@ -80,7 +79,7 @@ export function renderApp({
}}
>
<Router history={history}>
<EuiThemeProvider darkMode={isDarkMode}>
<EuiThemeProvider>
<RedirectAppLinks coreStart={core} data-test-subj="observabilityMainContainer">
<PerformanceContextProvider>
<EntityManagerOverviewPage />
Expand Down

0 comments on commit b3a6748

Please sign in to comment.