@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/dist/CourseItem/Reviews/ReviewsPopup/Stats/index.js +2 -2
- package/dist/CourseItem/Reviews/ReviewsPopup/Stats/index.js.map +1 -1
- package/dist/CourseItem/Sales/Sale/index.js +2 -4
- package/dist/CourseItem/Sales/Sale/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/CourseItem/Reviews/ReviewsPopup/Stats/index.tsx +2 -2
- package/src/CourseItem/Sales/Sale/index.tsx +2 -2
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ export const ReviewsStats: React.FC<ReviewsStatsProps> = ({
|
|
|
71
71
|
return null
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
const stars = [
|
|
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 ? '+ ' : ''}
|
|
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
|
-
Дополнительно Скидка {
|
|
244
|
+
Дополнительно Скидка {totalPriceOriginal - totalPrice}
|
|
245
245
|
{sale.benefitUnit === 'Percent' ? `%` : `₽`}
|
|
246
246
|
</p>
|
|
247
247
|
|