From a17cb3a122abc20db3c542175f50bf756d23141e Mon Sep 17 00:00:00 2001 From: Marcelo Serpa Date: Fri, 17 May 2024 17:26:48 -0600 Subject: [PATCH] Improve export name --- .../custom-select-control-v2/legacy-component/index.tsx | 9 +++++---- packages/components/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx index 5fdf3d7434ef49..8a13200f801463 100644 --- a/packages/components/src/custom-select-control-v2/legacy-component/index.tsx +++ b/packages/components/src/custom-select-control-v2/legacy-component/index.tsx @@ -143,10 +143,9 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) { ); } -export default CustomSelectControl; - -// for backwards compatibility -export function ClassicCustomSelectControl( props: LegacyCustomSelectProps ) { +export function ClassicCustomSelectControlV2Adapter( + props: LegacyCustomSelectProps +) { return ( ); } + +export default ClassicCustomSelectControlV2Adapter; diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index dff358f401ed21..5cfda8d3a2ccfc 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -63,7 +63,7 @@ export { useCompositeState as __unstableUseCompositeState, } from './composite'; export { ConfirmDialog as __experimentalConfirmDialog } from './confirm-dialog'; -export { ClassicCustomSelectControl as CustomSelectControl } from './custom-select-control-v2/legacy-component'; +export { ClassicCustomSelectControlV2Adapter as CustomSelectControl } from './custom-select-control-v2/legacy-component'; //export { StableCustomSelectControl as CustomSelectControl } from './custom-select-control'; export { default as CustomSelectControlV2 } from './custom-select-control-v2'; export { default as Dashicon } from './dashicon';