Update labels to match frontend sorting dropdown (https://github.com/woocommerce/woocommerce-blocks/pull/2462)
This commit is contained in:
parent
27508537f2
commit
fae3028c8a
|
@ -38,43 +38,40 @@ export const getSharedListControls = ( attributes, setAttributes ) => {
|
|||
options={ [
|
||||
{
|
||||
label: __(
|
||||
'Newness - newest first',
|
||||
'Default sorting (menu order)',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
value: 'menu_order',
|
||||
},
|
||||
{
|
||||
label: __( 'Popularity', 'woo-gutenberg-products-block' ),
|
||||
value: 'popularity',
|
||||
},
|
||||
{
|
||||
label: __(
|
||||
'Average rating',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
value: 'rating',
|
||||
},
|
||||
{
|
||||
label: __( 'Latest', 'woo-gutenberg-products-block' ),
|
||||
value: 'date',
|
||||
},
|
||||
{
|
||||
label: __(
|
||||
'Price - low to high',
|
||||
'Price: low to high',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
value: 'price',
|
||||
},
|
||||
{
|
||||
label: __(
|
||||
'Price - high to low',
|
||||
'Price: high to low',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
value: 'price-desc',
|
||||
},
|
||||
{
|
||||
label: __(
|
||||
'Rating - highest first',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
value: 'rating',
|
||||
},
|
||||
{
|
||||
label: __(
|
||||
'Sales - most first',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
value: 'popularity',
|
||||
},
|
||||
{
|
||||
label: __( 'Menu Order', 'woo-gutenberg-products-block' ),
|
||||
value: 'menu_order',
|
||||
},
|
||||
] }
|
||||
onChange={ ( orderby ) => setAttributes( { orderby } ) }
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue