@salesgenterp/ui-components 0.4.56 → 0.4.57
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.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2537,7 +2537,11 @@ var Step1 = function Step1(_ref) {
|
|
|
2537
2537
|
React.useEffect(function () {
|
|
2538
2538
|
setSelectedCountry(selectedCountry);
|
|
2539
2539
|
}, [selectedCountry]);
|
|
2540
|
-
|
|
2540
|
+
React.useEffect(function () {
|
|
2541
|
+
var _addressList$3;
|
|
2542
|
+
|
|
2543
|
+
setAddress((_addressList$3 = addressList[0]) === null || _addressList$3 === void 0 ? void 0 : _addressList$3.id);
|
|
2544
|
+
}, [addressList]);
|
|
2541
2545
|
return /*#__PURE__*/React__default.createElement(StepContainer, null, /*#__PURE__*/React__default.createElement(StepsHeaderComponent, {
|
|
2542
2546
|
text: 'billing information',
|
|
2543
2547
|
icon: 2
|
|
@@ -2673,6 +2677,11 @@ var Step2 = function Step2(_ref) {
|
|
|
2673
2677
|
React.useEffect(function () {
|
|
2674
2678
|
setSelectedCountry(selectedCountry);
|
|
2675
2679
|
}, [selectedCountry]);
|
|
2680
|
+
React.useEffect(function () {
|
|
2681
|
+
var _addressList$2;
|
|
2682
|
+
|
|
2683
|
+
setAddress((_addressList$2 = addressList[0]) === null || _addressList$2 === void 0 ? void 0 : _addressList$2.id);
|
|
2684
|
+
}, [addressList]);
|
|
2676
2685
|
return /*#__PURE__*/React__default.createElement(StepContainer, null, /*#__PURE__*/React__default.createElement(StepsHeaderComponent, {
|
|
2677
2686
|
text: showShipping ? 'shipping information' : 'shipping method',
|
|
2678
2687
|
icon: 3
|