Skip to content

Commit

Permalink
Remove explicit return leftover from unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Dec 7, 2023
1 parent f5b0711 commit 2d45a2a
Showing 1 changed file with 18 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,28 +171,24 @@ const BorderControlDropdown = (

const renderToggle: DropdownComponentProps[ 'renderToggle' ] = ( {
onToggle,
} ) => {
return (
<Button
onClick={ onToggle }
variant="tertiary"
aria-label={ toggleAriaLabel }
tooltipPosition={ dropdownPosition }
label={ __( 'Border color and style picker' ) }
showTooltip={ true }
__next40pxDefaultSize={
size === '__unstable-large' ? true : false
}
>
<span className={ indicatorWrapperClassName }>
<ColorIndicator
className={ indicatorClassName }
colorValue={ color }
/>
</span>
</Button>
);
};
} ) => (
<Button
onClick={ onToggle }
variant="tertiary"
aria-label={ toggleAriaLabel }
tooltipPosition={ dropdownPosition }
label={ __( 'Border color and style picker' ) }
showTooltip={ true }
__next40pxDefaultSize={ size === '__unstable-large' ? true : false }
>
<span className={ indicatorWrapperClassName }>
<ColorIndicator
className={ indicatorClassName }
colorValue={ color }
/>
</span>
</Button>
);

const renderContent: DropdownComponentProps[ 'renderContent' ] = ( {
onClose,
Expand Down

0 comments on commit 2d45a2a

Please sign in to comment.