mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Replace EuiThemeProvider
with KibanaThemeProvider
(#120244)
This commit is contained in:
parent
3360b6a53c
commit
44f3f92682
1 changed files with 6 additions and 4 deletions
|
@ -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';
|
||||
|
||||
|
@ -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}>
|
||||
|
@ -79,7 +81,7 @@ export const renderApp = (
|
|||
</Router>
|
||||
</Provider>
|
||||
</KibanaContextProvider>
|
||||
</EuiThemeProvider>
|
||||
</KibanaThemeProvider>
|
||||
</I18nProvider>,
|
||||
params.element
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue