Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed May 24, 2024
1 parent 46eeb44 commit a45ee08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,9 @@ function CustomSelectControl( props: LegacyCustomSelectProps ) {
) {
return 'default';
}

if ( ! __next40pxDefaultSize && size === 'default' ) {
return 'compact';
}

return size;
} )();

Expand Down
15 changes: 5 additions & 10 deletions packages/components/src/custom-select-control-v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,18 @@ export type CustomSelectStore = {

export type CustomSelectContext = CustomSelectStore | undefined;

export type CustomSelectButtonSize = {
type CustomSelectSize< Size = 'compact' | 'default' > = {
/**
* The size of the control.
*
* @default 'default'
*/
size?: 'compact' | 'default' | 'small';
size?: Size;
};

type CustomSelectSize = {
/**
* The size of the control.
*
* @default 'default'
*/
size?: 'compact' | 'default';
};
export type CustomSelectButtonSize = CustomSelectSize<
'compact' | 'default' | 'small'
>;

export type CustomSelectButtonProps = {
/**
Expand Down

0 comments on commit a45ee08

Please sign in to comment.