Skip to content

Commit

Permalink
Remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Jan 9, 2024
1 parent 178ff28 commit a780070
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/components/src/box-control/all-input-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ export default function AllInputControl( {
onChange( nextValues );
};

const unitControlOnChange: UnitControlProps[ 'onChange' ] = ( next ) => {
onValueChange( next );
};

const sliderOnChange = ( next?: number ) => {
onValueChange(
next !== undefined ? [ next, parsedUnit ].join( '' ) : undefined
Expand All @@ -80,7 +76,7 @@ export default function AllInputControl( {
id={ inputId }
isPressEnterToChange
value={ allValue }
onChange={ unitControlOnChange }
onChange={ onValueChange }
onUnitChange={ handleOnUnitChange }
onFocus={ handleOnFocus }
placeholder={ allPlaceholder }
Expand Down

0 comments on commit a780070

Please sign in to comment.