Skip to content

Commit

Permalink
[ILM] Fixed loading layout that has degraded after adding RedirectApp…
Browse files Browse the repository at this point in the history
…Links (#110461) (#110482)
  • Loading branch information
yuliacech authored Aug 30, 2021
1 parent 85e10f5 commit aeea4cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>();

0 comments on commit aeea4cc

Please sign in to comment.