@pelcro/react-pelcro-js 3.4.1-beta.1 → 3.4.1-beta.4
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/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12523,7 +12523,7 @@ class SelectModal extends React.Component {
|
|
|
12523
12523
|
}
|
|
12524
12524
|
}
|
|
12525
12525
|
|
|
12526
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval}`;
|
|
12526
|
+
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
|
|
12527
12527
|
});
|
|
12528
12528
|
|
|
12529
12529
|
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
@@ -12549,7 +12549,7 @@ class SelectModal extends React.Component {
|
|
|
12549
12549
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
12550
12550
|
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12551
12551
|
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
12552
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
12552
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans), console.log(product)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
12553
12553
|
onClick: productButtonCallback,
|
|
12554
12554
|
"data-key": product.id,
|
|
12555
12555
|
id: "pelcro-select-product-back-button",
|
|
@@ -22101,7 +22101,7 @@ const AddressSelectContainer = ({
|
|
|
22101
22101
|
selectedAddressId
|
|
22102
22102
|
});
|
|
22103
22103
|
|
|
22104
|
-
if (selectedMembership
|
|
22104
|
+
if (selectedMembership) {
|
|
22105
22105
|
dispatch({
|
|
22106
22106
|
type: LOADING,
|
|
22107
22107
|
payload: true
|
package/dist/index.esm.js
CHANGED
|
@@ -12493,7 +12493,7 @@ class SelectModal extends Component {
|
|
|
12493
12493
|
}
|
|
12494
12494
|
}
|
|
12495
12495
|
|
|
12496
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval}`;
|
|
12496
|
+
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval}s` : `${startingPlan.interval}`}`;
|
|
12497
12497
|
});
|
|
12498
12498
|
|
|
12499
12499
|
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
@@ -12519,7 +12519,7 @@ class SelectModal extends Component {
|
|
|
12519
12519
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
12520
12520
|
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
12521
12521
|
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
12522
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
12522
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans), console.log(product)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
12523
12523
|
onClick: productButtonCallback,
|
|
12524
12524
|
"data-key": product.id,
|
|
12525
12525
|
id: "pelcro-select-product-back-button",
|
|
@@ -22071,7 +22071,7 @@ const AddressSelectContainer = ({
|
|
|
22071
22071
|
selectedAddressId
|
|
22072
22072
|
});
|
|
22073
22073
|
|
|
22074
|
-
if (selectedMembership
|
|
22074
|
+
if (selectedMembership) {
|
|
22075
22075
|
dispatch({
|
|
22076
22076
|
type: LOADING,
|
|
22077
22077
|
payload: true
|