@thecb/components 8.0.2 → 8.0.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/dist/index.cjs.js +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +5 -5
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +4 -2
- package/src/components/molecules/obligation/modules/RemoveAccountModalModule.js +1 -1
package/package.json
CHANGED
|
@@ -34,6 +34,10 @@ const Card = ({
|
|
|
34
34
|
width = "276px",
|
|
35
35
|
children
|
|
36
36
|
}) => {
|
|
37
|
+
console.log(
|
|
38
|
+
"themeValues.imageBackgroundColor",
|
|
39
|
+
themeValues.imageBackgroundColor
|
|
40
|
+
);
|
|
37
41
|
const hasImage = Image || imgSrc;
|
|
38
42
|
const numberOfChildren =
|
|
39
43
|
(Array.isArray(children) ? children.length : 1) +
|
|
@@ -66,11 +70,7 @@ const Card = ({
|
|
|
66
70
|
)}
|
|
67
71
|
<Stack direction="row" childGap="0">
|
|
68
72
|
{Image && !imgSrc && (
|
|
69
|
-
<Box
|
|
70
|
-
minHeight={imgHeight}
|
|
71
|
-
padding="0"
|
|
72
|
-
background={themeValues.imageBackgroundColor}
|
|
73
|
-
>
|
|
73
|
+
<Box minHeight={imgHeight} padding="0" background="#E4F4FD">
|
|
74
74
|
<Cover minHeight={imgHeight} singleChild>
|
|
75
75
|
<Center intrinsic>
|
|
76
76
|
<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
|
|
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"
|