mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Shared UX] Fix redirect app links fill vertical space (#141656)
This commit is contained in:
parent
bf3ee9e393
commit
244ef02ff1
10 changed files with 46 additions and 32 deletions
|
@ -14,7 +14,6 @@ import { Storage } from '@kbn/kibana-utils-plugin/public';
|
|||
import { RouteRenderer, RouterProvider } from '@kbn/typed-react-router-config';
|
||||
|
||||
import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app';
|
||||
import { css } from '@emotion/react';
|
||||
import { ProfilingDependenciesContextProvider } from './components/contexts/profiling_dependencies/profiling_dependencies_context';
|
||||
import { RedirectWithDefaultDateRange } from './components/redirect_with_default_date_range';
|
||||
import { profilingRouter } from './routing';
|
||||
|
@ -33,11 +32,6 @@ interface Props {
|
|||
history: AppMountParameters['history'];
|
||||
}
|
||||
|
||||
const redirectAppLinksCss = css`
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
`;
|
||||
|
||||
const storage = new Storage(localStorage);
|
||||
|
||||
function App({
|
||||
|
@ -69,11 +63,7 @@ function App({
|
|||
<KibanaThemeProvider theme$={theme$}>
|
||||
<KibanaContextProvider services={{ ...coreStart, ...pluginsStart, storage }}>
|
||||
<i18nCore.Context>
|
||||
<RedirectAppLinks
|
||||
coreStart={coreStart}
|
||||
currentAppId="profiling"
|
||||
css={redirectAppLinksCss}
|
||||
>
|
||||
<RedirectAppLinks coreStart={coreStart} currentAppId="profiling">
|
||||
<RouterProvider router={profilingRouter as any} history={history}>
|
||||
<TimeRangeContextProvider>
|
||||
<ProfilingDependenciesContextProvider value={profilingDependencies}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue