Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Make filter by rating preview consistent with default settings (#10007)
Browse files Browse the repository at this point in the history
* Make filter by rating preview consistent with default settings

* Remove unneeded classnames
  • Loading branch information
roykho authored Jun 29, 2023
1 parent 1b9746e commit ad92e31
Showing 1 changed file with 5 additions and 40 deletions.
45 changes: 5 additions & 40 deletions assets/js/blocks/rating-filter/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,23 @@ import Rating from '@woocommerce/base-components/product-rating';

export const previewOptions = [
{
label: (
<Rating
className={ '' }
key={ 5 }
rating={ 5 }
ratedProductsCount={ 5 }
/>
),
label: <Rating key={ 5 } rating={ 5 } ratedProductsCount={ null } />,
value: '5',
},
{
label: (
<Rating
className={ '' }
key={ 4 }
rating={ 4 }
ratedProductsCount={ 4 }
/>
),
label: <Rating key={ 4 } rating={ 4 } ratedProductsCount={ null } />,
value: '4',
},
{
label: (
<Rating
className={ '' }
key={ 3 }
rating={ 3 }
ratedProductsCount={ 3 }
/>
),
label: <Rating key={ 3 } rating={ 3 } ratedProductsCount={ null } />,
value: '3',
},
{
label: (
<Rating
className={ '' }
key={ 2 }
rating={ 2 }
ratedProductsCount={ 2 }
/>
),
label: <Rating key={ 2 } rating={ 2 } ratedProductsCount={ null } />,
value: '2',
},
{
label: (
<Rating
className={ '' }
key={ 1 }
rating={ 1 }
ratedProductsCount={ 1 }
/>
),
label: <Rating key={ 1 } rating={ 1 } ratedProductsCount={ null } />,
value: '1',
},
];

0 comments on commit ad92e31

Please sign in to comment.