Skip to content

Commit

Permalink
Replace EuiThemeProvider with KibanaThemeProvider (#120244)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger authored Dec 2, 2021
1 parent 3360b6a commit 44f3f92
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 44f3f92

Please sign in to comment.