From dd9b3d2ba928a1505e4e0005a957720faac8d6f8 Mon Sep 17 00:00:00 2001 From: Amit Raj Date: Mon, 12 Aug 2024 12:41:40 +0530 Subject: [PATCH] chore: Add label prop to SizeControl component --- .../src/components/global-styles/size-control/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/size-control/index.js b/packages/edit-site/src/components/global-styles/size-control/index.js index a7e7bd6127a5f..833cccc91636c 100644 --- a/packages/edit-site/src/components/global-styles/size-control/index.js +++ b/packages/edit-site/src/components/global-styles/size-control/index.js @@ -1,7 +1,6 @@ /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -22,7 +21,7 @@ const DEFAULT_UNITS = [ 'px', 'em', 'rem', 'vw', 'vh' ]; function SizeControl( props ) { const { baseControlProps } = useBaseControlProps( props ); - const { value, onChange, fallbackValue, disabled } = props; + const { value, onChange, fallbackValue, disabled, label } = props; const units = useCustomUnits( { availableUnits: DEFAULT_UNITS, @@ -51,7 +50,7 @@ function SizeControl( props ) {