@pelcro/react-pelcro-js 3.5.1-beta.2 → 3.5.1
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 +1 -4
- package/dist/index.esm.js +1 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22483,9 +22483,6 @@ const AddressSelectSubmit = ({
|
|
|
22483
22483
|
isSubmitting
|
|
22484
22484
|
}
|
|
22485
22485
|
} = React.useContext(store$5);
|
|
22486
|
-
console.log("Selected", selectedAddressId);
|
|
22487
|
-
console.log("Selected", typeof selectedAddressId);
|
|
22488
|
-
console.log("IsSubmitted", isSubmitting);
|
|
22489
22486
|
const {
|
|
22490
22487
|
t
|
|
22491
22488
|
} = useTranslation("address");
|
|
@@ -22496,7 +22493,7 @@ const AddressSelectSubmit = ({
|
|
|
22496
22493
|
});
|
|
22497
22494
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
22498
22495
|
},
|
|
22499
|
-
disabled:
|
|
22496
|
+
disabled: !selectedAddressId,
|
|
22500
22497
|
isLoading: isSubmitting
|
|
22501
22498
|
}, otherProps), name !== null && name !== void 0 ? name : t("buttons.submit"));
|
|
22502
22499
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -22453,9 +22453,6 @@ const AddressSelectSubmit = ({
|
|
|
22453
22453
|
isSubmitting
|
|
22454
22454
|
}
|
|
22455
22455
|
} = useContext(store$5);
|
|
22456
|
-
console.log("Selected", selectedAddressId);
|
|
22457
|
-
console.log("Selected", typeof selectedAddressId);
|
|
22458
|
-
console.log("IsSubmitted", isSubmitting);
|
|
22459
22456
|
const {
|
|
22460
22457
|
t
|
|
22461
22458
|
} = useTranslation("address");
|
|
@@ -22466,7 +22463,7 @@ const AddressSelectSubmit = ({
|
|
|
22466
22463
|
});
|
|
22467
22464
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
22468
22465
|
},
|
|
22469
|
-
disabled:
|
|
22466
|
+
disabled: !selectedAddressId,
|
|
22470
22467
|
isLoading: isSubmitting
|
|
22471
22468
|
}, otherProps), name !== null && name !== void 0 ? name : t("buttons.submit"));
|
|
22472
22469
|
};
|