mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
This commit is contained in:
parent
adb5f610fb
commit
678716b49d
2 changed files with 4 additions and 2 deletions
|
@ -12,7 +12,7 @@ import { UnmountCallback } from 'src/core/public';
|
|||
import { CloudSetup } from '../../../cloud/public';
|
||||
import { ILicense } from '../../../licensing/public';
|
||||
|
||||
import { KibanaContextProvider } from '../shared_imports';
|
||||
import { KibanaContextProvider, APP_WRAPPER_CLASS } from '../shared_imports';
|
||||
|
||||
import { App } from './app';
|
||||
|
||||
|
@ -30,7 +30,7 @@ export const renderApp = (
|
|||
): UnmountCallback => {
|
||||
const { getUrlForApp } = application;
|
||||
render(
|
||||
<RedirectAppLinks application={application}>
|
||||
<RedirectAppLinks application={application} className={APP_WRAPPER_CLASS}>
|
||||
<I18nContext>
|
||||
<KibanaContextProvider services={{ cloud, breadcrumbService, license, getUrlForApp }}>
|
||||
<App history={history} />
|
||||
|
|
|
@ -43,4 +43,6 @@ export { attemptToURIDecode } from '../../../../src/plugins/es_ui_shared/public'
|
|||
|
||||
export { KibanaContextProvider } from '../../../../src/plugins/kibana_react/public';
|
||||
|
||||
export { APP_WRAPPER_CLASS } from '../../../../src/core/public';
|
||||
|
||||
export const useKibana = () => _useKibana<AppServicesContext>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue