@procraft/widget-order 2.30.11 → 2.30.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@procraft/widget-order",
3
3
  "description": "Order widget for landing",
4
- "version": "2.30.11",
4
+ "version": "2.30.13",
5
5
  "private": false,
6
6
  "main": "dist",
7
7
  "scripts": {
@@ -71,7 +71,7 @@ export const ReviewsStats: React.FC<ReviewsStatsProps> = ({
71
71
  return null
72
72
  }
73
73
 
74
- const stars = [1, 2, 3, 4, 5].map((n) => {
74
+ const stars = [5, 4, 3, 2, 1].map((n) => {
75
75
  const count = reviewNodes.filter((i) => i.rating === n).length
76
76
  const percent = Math.round(100 / (reviewNodes.length / count))
77
77
 
@@ -97,9 +97,9 @@ export const ReviewsStats: React.FC<ReviewsStatsProps> = ({
97
97
  })
98
98
 
99
99
  const expectations = [
100
+ MeetExpectation.OVEREXPECTATION,
100
101
  MeetExpectation.ASEXPECTED,
101
102
  MeetExpectation.BELOWEXPECTATION,
102
- MeetExpectation.OVEREXPECTATION,
103
103
  ].map((n) => {
104
104
  const count = reviewNodes.filter((i) => i.meetExpectation === n).length
105
105
  const percent = Math.round(100 / (reviewNodes.length / count))
@@ -175,7 +175,7 @@ const Sale: React.FC<SaleProps> = ({
175
175
  items.push(
176
176
  <span key={n.id} className="item">
177
177
  <span className="item--name">
178
- {index > 0 ? '+ ' : ''}"{n.name}"
178
+ {index > 0 ? '+ ' : ''}{n.name}
179
179
  </span>{' '}
180
180
  {priceWithDiscount ? (
181
181
  <span>
@@ -241,7 +241,7 @@ const Sale: React.FC<SaleProps> = ({
241
241
  </div>
242
242
  <div className="content">
243
243
  <p style={{ color: titleTextColor }} className="title">
244
- Дополнительно Скидка {sale.benefitAmount}
244
+ Дополнительно Скидка {totalPriceOriginal - totalPrice}
245
245
  {sale.benefitUnit === 'Percent' ? `%` : `₽`}
246
246
  </p>
247
247