@thecb/components 8.0.2 → 8.0.3-beta.2

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": "8.0.2",
3
+ "version": "8.0.3-beta.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -66,11 +66,7 @@ const Card = ({
66
66
  )}
67
67
  <Stack direction="row" childGap="0">
68
68
  {Image && !imgSrc && (
69
- <Box
70
- minHeight={imgHeight}
71
- padding="0"
72
- background={themeValues.imageBackgroundColor}
73
- >
69
+ <Box minHeight={imgHeight} padding="0" background="#E4F4FD">
74
70
  <Cover minHeight={imgHeight} singleChild>
75
71
  <Center intrinsic>
76
72
  <Image alt={imgAltText} />
@@ -39,7 +39,7 @@ 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 setup ${planText} you must have a saved ${methodRequired} and address in your profile. 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";
@@ -57,7 +57,9 @@ const AutopayModal = ({
57
57
  : ""
58
58
  }`
59
59
  : generateMethodNeededText(plan, allowedPaymentInstruments),
60
- continueButtonText: autoPayActive ? `Disable ${shortPlan}` : "Add",
60
+ continueButtonText: autoPayActive
61
+ ? `Disable ${shortPlan}`
62
+ : "Add to Profile",
61
63
  useDangerButton: autoPayActive,
62
64
  continueAction: autoPayActive
63
65
  ? () => {
@@ -35,7 +35,7 @@ const RemoveAccountModalModule = ({
35
35
  hideModal={() => setModalIsOpen(false)}
36
36
  modalOpen={modalIsOpen}
37
37
  modalHeaderText={`Remove ${accountType}`}
38
- modalBodyText={`Are you sure you want to remove the ${identifier} ${accounts}? Any autopay scheduled against ${
38
+ modalBodyText={`Are you sure you want to remove the ${identifier} ${accounts} from your profile? Any autopay scheduled against ${
39
39
  obligations.length > 1 ? "them" : "it"
40
40
  } will be deactivated.`}
41
41
  continueButtonText="Remove"