@thecb/components 11.4.2-beta.2 → 11.4.2-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 +2 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +0 -3
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +4 -1
package/dist/index.cjs.js
CHANGED
|
@@ -45358,6 +45358,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
45358
45358
|
return formattedAccount === agencyName ? agencyName : acc + formattedAccount;
|
|
45359
45359
|
}, "".concat(agencyName, " - ")) : "";
|
|
45360
45360
|
var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
|
|
45361
|
+
var accountsText = (accounts !== null && accounts !== void 0 ? accounts : "").trim();
|
|
45361
45362
|
return /*#__PURE__*/React__default.createElement(Modal$3, {
|
|
45362
45363
|
showModal: function showModal() {
|
|
45363
45364
|
return setModalIsOpen(true);
|
|
@@ -45367,7 +45368,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
45367
45368
|
},
|
|
45368
45369
|
modalOpen: modalIsOpen,
|
|
45369
45370
|
modalHeaderText: "Remove ".concat(accountType),
|
|
45370
|
-
modalBodyText: "Are you sure you want to remove the ".concat(identifier
|
|
45371
|
+
modalBodyText: "Are you sure you want to remove the ".concat(identifier).concat(accountsText ? " ".concat(accountsText) : "", "? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."),
|
|
45371
45372
|
continueButtonText: "Remove",
|
|
45372
45373
|
continueAction: function continueAction() {
|
|
45373
45374
|
if (!disableActions) {
|
|
@@ -45434,9 +45435,6 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
45434
45435
|
id: obligationAssocID,
|
|
45435
45436
|
obligationSlug: config === null || config === void 0 ? void 0 : config.obligationSlug
|
|
45436
45437
|
};
|
|
45437
|
-
debugger;
|
|
45438
|
-
// eslint-disable-next-line no-console
|
|
45439
|
-
console.debug("DeleteObligationAssoc (cb-components) payload", payload);
|
|
45440
45438
|
deleteObligationAssoc(payload);
|
|
45441
45439
|
};
|
|
45442
45440
|
return /*#__PURE__*/React__default.createElement(Box, {
|