@thecb/components 10.1.3-beta.1 → 10.1.3-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.1.3-beta.1",
3
+ "version": "10.1.3-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -43,7 +43,7 @@ const AutopayModal = ({
43
43
  };
44
44
  const plan = isPaymentPlan ? "your payment plan" : "autopay";
45
45
  const shortPlan = isPaymentPlan ? "Payment Plan" : "Autopay";
46
- const deactivateText = `stop ${shortPlan} for ${description}: ${subDescription}`;
46
+ const deactivateText = `stop ${shortPlan.toLowerCase()} for ${description}: ${subDescription}`;
47
47
  const activateText = `Set Up ${shortPlan} for ${description}: ${subDescription}`;
48
48
  const nextDate = dueDate || nextAutopayDate;
49
49
  const modalExtraProps = {
@@ -51,7 +51,11 @@ const AutopayModal = ({
51
51
  ? titleCaseString(deactivateText)
52
52
  : titleCaseString(activateText),
53
53
  modalBodyText: autoPayActive
54
- ? `Are you sure you want to stop ${plan}?`
54
+ ? `Are you sure you want to stop ${plan}? ${
55
+ !inactive && nextDate && nextDate !== "On"
56
+ ? "Your next payment will be due on " + nextDate + "."
57
+ : ""
58
+ }`
55
59
  : generateMethodNeededText(plan, allowedPaymentInstruments),
56
60
  continueButtonText: autoPayActive ? `Stop ${shortPlan}` : "Add",
57
61
  useDangerButton: autoPayActive,