Revert "Set control label per context"

This reverts commit cd537befbe.
This commit is contained in:
Bart Kalisz 2024-09-10 14:17:23 +02:00 committed by Christopher Allford
parent 88e04f1b3a
commit fa83d18545
No known key found for this signature in database
GPG Key ID: 80E44C778F08A88E
3 changed files with 1 additions and 4 deletions

View File

@ -81,7 +81,6 @@ function useProducts(
}
export const HandPickedProductsControlField = ( {
label,
query,
trackInteraction,
setQueryAttribute,
@ -152,7 +151,7 @@ export const HandPickedProductsControlField = ( {
return (
<FormTokenField
displayTransform={ transformTokenIntoProductName }
label={ label || __( 'Hand-Picked Products', 'woocommerce' ) }
label={ __( 'Select Products', 'woocommerce' ) }
onChange={ onTokenChange }
onInputChange={ isLargeCatalog ? handleSearch : undefined }
suggestions={ suggestions }

View File

@ -292,7 +292,6 @@ const CollectionSpecificControls = (
'woocommerce/product-collection/hand-picked' && (
<HandPickedProductsControlField
{ ...queryControlProps }
label={ __( 'Select Products', 'woocommerce' ) }
/>
)
}

View File

@ -142,7 +142,6 @@ export type DisplayLayoutControlProps = {
setAttributes: ProductCollectionSetAttributes;
};
export type QueryControlProps = {
label?: string;
query: ProductCollectionQuery;
trackInteraction: TrackInteraction;
setQueryAttribute: ( attrs: Partial< ProductCollectionQuery > ) => void;