Skip to content

Commit

Permalink
Improve export name
Browse files Browse the repository at this point in the history
  • Loading branch information
fullofcaffeine committed May 17, 2024
1 parent 9af7d54 commit a17cb3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,15 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) {
);
}

export default CustomSelectControl;

// for backwards compatibility
export function ClassicCustomSelectControl( props: LegacyCustomSelectProps ) {
export function ClassicCustomSelectControlV2Adapter(
props: LegacyCustomSelectProps
) {
return (
<CustomSelectControl
{ ...props }
__experimentalShowSelectedHint={ false }
/>
);
}

export default ClassicCustomSelectControlV2Adapter;
2 changes: 1 addition & 1 deletion packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit a17cb3a

Please sign in to comment.