Skip to content

Commit

Permalink
Replace EuiThemeProvider with KibanaThemeProvider (elastic#120244)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger authored and TinLe committed Dec 22, 2021
1 parent eebb413 commit 0b4f5bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions x-pack/plugins/enterprise_search/public/applications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import { Store } from 'redux';
import { I18nProvider } from '@kbn/i18n-react';

import { AppMountParameters, CoreStart } from '../../../../../src/core/public';
import { EuiThemeProvider } from '../../../../../src/plugins/kibana_react/common';
import { KibanaContextProvider } from '../../../../../src/plugins/kibana_react/public';
import {
KibanaContextProvider,
KibanaThemeProvider,
} from '../../../../../src/plugins/kibana_react/public';
import { InitialAppData } from '../../common/types';
import { PluginsStart, ClientConfigType, ClientData } from '../plugin';

Expand Down Expand Up @@ -70,7 +72,7 @@ export const renderApp = (

ReactDOM.render(
<I18nProvider>
<EuiThemeProvider>
<KibanaThemeProvider theme$={params.theme$}>
<KibanaContextProvider services={{ ...core, ...plugins }}>
<Provider store={store}>
<Router history={params.history}>
Expand All @@ -79,7 +81,7 @@ export const renderApp = (
</Router>
</Provider>
</KibanaContextProvider>
</EuiThemeProvider>
</KibanaThemeProvider>
</I18nProvider>,
params.element
);
Expand Down

0 comments on commit 0b4f5bc

Please sign in to comment.