@propeller-commerce/propeller-v2-react-ui 0.4.24 → 0.4.26
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/CHANGELOG.md +58 -0
- package/dist/index.cjs +152 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +152 -82
- package/dist/index.js.map +1 -1
- package/dist/pure.cjs +4 -2
- package/dist/pure.cjs.map +1 -1
- package/dist/pure.d.cts +13 -0
- package/dist/pure.d.ts +13 -0
- package/dist/pure.js +4 -2
- package/dist/pure.js.map +1 -1
- package/package.json +1 -1
package/dist/pure.cjs
CHANGED
|
@@ -433,11 +433,13 @@ function OrderSummary(props) {
|
|
|
433
433
|
const showRemarks = props.showRemarks !== void 0 ? props.showRemarks : true;
|
|
434
434
|
const orderNumber = order?.id || "";
|
|
435
435
|
const orderDate = order?.createdAt || "";
|
|
436
|
-
const
|
|
436
|
+
const rawStatus = order?.status || "";
|
|
437
|
+
const orderStatus = rawStatus ? props.statusLabels?.[rawStatus] || rawStatus : "";
|
|
437
438
|
const orderTotal = Number(order?.total?.net || 0);
|
|
438
439
|
const orderReference = order?.reference || "";
|
|
439
440
|
const orderRemarks = order?.remarks || "";
|
|
440
|
-
const
|
|
441
|
+
const rawPaymentMethod = order?.paymentData?.method || "";
|
|
442
|
+
const paymentMethod = rawPaymentMethod ? props.paymethodLabels?.[rawPaymentMethod.toLowerCase()] || rawPaymentMethod : "";
|
|
441
443
|
const carrierName = order?.postageData?.carrier || "";
|
|
442
444
|
const addresses = order?.addresses || [];
|
|
443
445
|
const invoiceAddress = addresses.find((a) => a.type === "invoice") || null;
|