@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.esm.js
CHANGED
|
@@ -45350,6 +45350,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
45350
45350
|
return formattedAccount === agencyName ? agencyName : acc + formattedAccount;
|
|
45351
45351
|
}, "".concat(agencyName, " - ")) : "";
|
|
45352
45352
|
var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
|
|
45353
|
+
var accountsText = (accounts !== null && accounts !== void 0 ? accounts : "").trim();
|
|
45353
45354
|
return /*#__PURE__*/React__default.createElement(Modal$3, {
|
|
45354
45355
|
showModal: function showModal() {
|
|
45355
45356
|
return setModalIsOpen(true);
|
|
@@ -45359,7 +45360,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
|
|
|
45359
45360
|
},
|
|
45360
45361
|
modalOpen: modalIsOpen,
|
|
45361
45362
|
modalHeaderText: "Remove ".concat(accountType),
|
|
45362
|
-
modalBodyText: "Are you sure you want to remove the ".concat(identifier
|
|
45363
|
+
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."),
|
|
45363
45364
|
continueButtonText: "Remove",
|
|
45364
45365
|
continueAction: function continueAction() {
|
|
45365
45366
|
if (!disableActions) {
|
|
@@ -45426,9 +45427,6 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
45426
45427
|
id: obligationAssocID,
|
|
45427
45428
|
obligationSlug: config === null || config === void 0 ? void 0 : config.obligationSlug
|
|
45428
45429
|
};
|
|
45429
|
-
debugger;
|
|
45430
|
-
// eslint-disable-next-line no-console
|
|
45431
|
-
console.debug("DeleteObligationAssoc (cb-components) payload", payload);
|
|
45432
45430
|
deleteObligationAssoc(payload);
|
|
45433
45431
|
};
|
|
45434
45432
|
return /*#__PURE__*/React__default.createElement(Box, {
|