[ILM] Fixed loading layout that has degraded after adding RedirectAppLinks (#110461) (#110481)

This commit is contained in:
Yulia Čech 2021-08-30 18:30:01 +02:00 committed by GitHub
parent adb5f610fb
commit 678716b49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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} />

View file

@ -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>();