mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[shared-ux] remove circular dependency in solution-nav (#147201)
While working on another project I found a circular dependency between the `@kbn/shared-ux-page-solution-nav` and `@kbn/shared-ux-page-kibana-template-types` packages. My upcoming PR will prevent this from happening in the future, but for now this is just a small change to fix the issue.
This commit is contained in:
parent
e674e11381
commit
8b89a5bd5c
1 changed files with 10 additions and 4 deletions
|
@ -8,8 +8,12 @@
|
|||
|
||||
import React, { ComponentType, ReactNode, useState } from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { KibanaPageTemplateProps } from '@kbn/shared-ux-page-kibana-template-types';
|
||||
import { useIsWithinBreakpoints, useEuiTheme, useIsWithinMinBreakpoint } from '@elastic/eui';
|
||||
import {
|
||||
useIsWithinBreakpoints,
|
||||
useEuiTheme,
|
||||
useIsWithinMinBreakpoint,
|
||||
EuiPageSidebarProps,
|
||||
} from '@elastic/eui';
|
||||
import { SolutionNav, SolutionNavProps } from './solution_nav';
|
||||
import { WithSolutionNavStyles } from './with_solution_nav.styles';
|
||||
|
||||
|
@ -18,9 +22,11 @@ function getDisplayName(Component: ComponentType<any>) {
|
|||
return Component.displayName || Component.name || 'UnnamedComponent';
|
||||
}
|
||||
|
||||
type TemplateProps = Pick<KibanaPageTemplateProps, 'pageSideBar' | 'pageSideBarProps'> & {
|
||||
export interface TemplateProps {
|
||||
children?: ReactNode;
|
||||
};
|
||||
pageSideBar?: ReactNode;
|
||||
pageSideBarProps?: EuiPageSidebarProps;
|
||||
}
|
||||
|
||||
type Props<P> = P &
|
||||
TemplateProps & {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue