Skip to content

Commit

Permalink
More clearly mark EuiPageSideBarProps as deprecated
Browse files Browse the repository at this point in the history
- it's causing confusion in Kibana
  • Loading branch information
cee-chen committed Dec 7, 2022
1 parent 701f244 commit c48afd7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/page/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export {
export type { EuiPageSectionProps } from './page_section';
export { EuiPageSection } from './page_section';

export type { EuiPageSideBarProps } from './page_side_bar';
export type { EuiPageSideBarProps_Deprecated } from './page_side_bar';
export { EuiPageSideBar_Deprecated } from './page_side_bar';

export type { EuiPageSidebarProps } from './page_sidebar';
Expand Down
2 changes: 1 addition & 1 deletion src/components/page/page_side_bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* Side Public License, v 1.
*/

export type { EuiPageSideBarProps } from './page_side_bar';
export type { EuiPageSideBarProps_Deprecated } from './page_side_bar';
export { EuiPageSideBar_Deprecated } from './page_side_bar';
7 changes: 5 additions & 2 deletions src/components/page/page_side_bar/page_side_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const paddingSizeToClassNameMap = {

export const PADDING_SIZES = keysOf(paddingSizeToClassNameMap);

export interface EuiPageSideBarProps
/**
* @deprecated Use the new EuiPageSidebarProps in page/page_sidebar instead
*/
export interface EuiPageSideBarProps_Deprecated
extends CommonProps,
HTMLAttributes<HTMLDivElement> {
/**
Expand All @@ -35,7 +38,7 @@ export interface EuiPageSideBarProps
/**
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
*/
export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps> = ({
export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps_Deprecated> = ({
children,
className,
sticky,
Expand Down
2 changes: 1 addition & 1 deletion src/components/page/page_template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { css } from '@emotion/react';
import { EuiPage, EuiPageProps } from './page';
import {
EuiPageSideBar_Deprecated as EuiPageSideBar,
EuiPageSideBarProps,
EuiPageSideBarProps_Deprecated as EuiPageSideBarProps,
} from './page_side_bar';
import { EuiPageBody, EuiPageBodyProps } from './page_body';
import { EuiPageHeader, EuiPageHeaderProps } from './page_header';
Expand Down

0 comments on commit c48afd7

Please sign in to comment.