@licklist/design 0.71.18-dev.12 → 0.71.18-dev.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/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -3
- package/package.json +1 -1
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAKrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAKrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CAyCrB,CAAA"}
|
|
@@ -2,7 +2,6 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import * as Config from '@licklist/core/dist/Config';
|
|
5
|
-
import { calculateTotalModifiersPrice } from '../../utils/index.js';
|
|
6
5
|
import { ProductWithModifier } from '../../../CategoryProduct/components/ProductWithModifier/ProductWithModifier.js';
|
|
7
6
|
|
|
8
7
|
var ProductSummary = function(param) {
|
|
@@ -11,7 +10,6 @@ var ProductSummary = function(param) {
|
|
|
11
10
|
var formatNumber = useIntl().formatNumber;
|
|
12
11
|
var priceForOneProduct = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.price;
|
|
13
12
|
var modifiersSets = (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderModifiersSets) || (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderProductModifiers);
|
|
14
|
-
var modifierSetsPrice = calculateTotalModifiersPrice(modifiersSets);
|
|
15
13
|
var fullPrice = formatNumber(priceForOneProduct * (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.quantity), {
|
|
16
14
|
style: 'currency',
|
|
17
15
|
currency: Config.Currency.GBP
|
|
@@ -34,7 +32,7 @@ var ProductSummary = function(param) {
|
|
|
34
32
|
orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.quantity
|
|
35
33
|
]
|
|
36
34
|
}),
|
|
37
|
-
|
|
35
|
+
/*#__PURE__*/ jsx("p", {
|
|
38
36
|
className: "price",
|
|
39
37
|
children: fullPrice
|
|
40
38
|
})
|
package/package.json
CHANGED
|
@@ -28,16 +28,11 @@ export const ProductSummary = ({
|
|
|
28
28
|
|
|
29
29
|
const modifiersSets = orderProduct?.orderModifiersSets || orderProduct?.orderProductModifiers
|
|
30
30
|
|
|
31
|
-
const modifierSetsPrice = calculateTotalModifiersPrice(
|
|
32
|
-
modifiersSets
|
|
33
|
-
)
|
|
34
|
-
|
|
35
31
|
const fullPrice = formatNumber(priceForOneProduct * orderProduct?.quantity, {
|
|
36
32
|
style: 'currency',
|
|
37
33
|
currency: Config.Currency.GBP,
|
|
38
34
|
})
|
|
39
35
|
|
|
40
|
-
|
|
41
36
|
return (
|
|
42
37
|
<div className='product'>
|
|
43
38
|
<p className='m-0 name'>{name ?? orderProduct?.name}</p>
|
|
@@ -46,7 +41,7 @@ export const ProductSummary = ({
|
|
|
46
41
|
{t('shortQuantity')}: {orderProduct?.quantity}
|
|
47
42
|
</p>
|
|
48
43
|
|
|
49
|
-
|
|
44
|
+
<p className='price'>{fullPrice}</p>
|
|
50
45
|
</div>
|
|
51
46
|
|
|
52
47
|
{!!modifiersSets.length && (
|