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

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.5",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -39,17 +39,19 @@ const AutopayModal = ({
39
39
  ? "checking account payment method"
40
40
  : "payment method";
41
41
 
42
- return `To setup ${planText} you must have a saved ${methodRequired} and address. Do you want to save these now?`;
42
+ return `To set up ${planText} you must have a saved ${methodRequired} and address. Do you want to save these now?`;
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.toLowerCase()} 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"