@thecb/components 10.1.3-beta.3 → 10.1.3-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.1.3-beta.3",
3
+ "version": "10.1.3-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -43,13 +43,15 @@ 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.toLowerCase()} for ${description}: ${subDescription}`;
47
- const activateText = `Set Up ${shortPlan} for ${description}: ${subDescription}`;
46
+ const deactivateText = `Stop ${shortPlan.toLowerCase()} for ${titleCaseString(
47
+ description
48
+ )}: ${titleCaseString(subDescription)}`;
49
+ const activateText = titleCaseString(
50
+ `Set Up ${shortPlan} for ${description}: ${subDescription}`
51
+ );
48
52
  const nextDate = dueDate || nextAutopayDate;
49
53
  const modalExtraProps = {
50
- modalHeaderText: autoPayActive
51
- ? titleCaseString(deactivateText)
52
- : titleCaseString(activateText),
54
+ modalHeaderText: autoPayActive ? deactivateText : activateText,
53
55
  modalBodyText: autoPayActive
54
56
  ? `Are you sure you want to stop ${plan}? ${
55
57
  !inactive && nextDate && nextDate !== "On"