parent
88e04f1b3a
commit
fa83d18545
|
@ -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 }
|
||||
|
|
|
@ -292,7 +292,6 @@ const CollectionSpecificControls = (
|
|||
'woocommerce/product-collection/hand-picked' && (
|
||||
<HandPickedProductsControlField
|
||||
{ ...queryControlProps }
|
||||
label={ __( 'Select Products', 'woocommerce' ) }
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -142,7 +142,6 @@ export type DisplayLayoutControlProps = {
|
|||
setAttributes: ProductCollectionSetAttributes;
|
||||
};
|
||||
export type QueryControlProps = {
|
||||
label?: string;
|
||||
query: ProductCollectionQuery;
|
||||
trackInteraction: TrackInteraction;
|
||||
setQueryAttribute: ( attrs: Partial< ProductCollectionQuery > ) => void;
|
||||
|
|
Loading…
Reference in New Issue