[Shared UX] Fix redirect app links fill vertical space (#141656)

This commit is contained in:
Rachel Shen 2022-11-08 15:46:05 -07:00 committed by GitHub
parent bf3ee9e393
commit 244ef02ff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 46 additions and 32 deletions

View file

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