@thecb/components 5.11.0 → 5.11.4-beta.0
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 +8 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +1 -1
- package/src/components/molecules/payment-details/PaymentDetails.js +11 -5
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
@@ -108,7 +108,7 @@ const PaymentDetailsActions = ({
|
|
|
108
108
|
variant="tertiary"
|
|
109
109
|
text={`Set Up ${planType}`}
|
|
110
110
|
action={() => {
|
|
111
|
-
setDetailedObligation(obligations, config);
|
|
111
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
112
112
|
handleAutopayAction();
|
|
113
113
|
}}
|
|
114
114
|
dataQa="Set Up Autopay"
|
|
@@ -46,7 +46,11 @@ const PaymentDetailsContent = ({
|
|
|
46
46
|
</Text>
|
|
47
47
|
{voidableTransactionDetails.map(t => (
|
|
48
48
|
<Cluster key={t.id} justify="space-between" align="center">
|
|
49
|
-
<Cluster
|
|
49
|
+
<Cluster
|
|
50
|
+
padding="0"
|
|
51
|
+
align="center"
|
|
52
|
+
extraStyles={`font-size: 14px;`}
|
|
53
|
+
>
|
|
50
54
|
<Box padding="0">{t.voidText}</Box>
|
|
51
55
|
<ButtonWithAction
|
|
52
56
|
variant="ghost"
|
|
@@ -54,11 +58,11 @@ const PaymentDetailsContent = ({
|
|
|
54
58
|
text="Void"
|
|
55
59
|
padding="0"
|
|
56
60
|
extraStyles={`
|
|
57
|
-
min-width:
|
|
61
|
+
min-width: 65px;
|
|
58
62
|
margin: 0px;
|
|
59
63
|
min-height: 0px;
|
|
60
64
|
`}
|
|
61
|
-
textExtraStyles={`font-weight: ${FONT_WEIGHT_REGULAR}; font-size:
|
|
65
|
+
textExtraStyles={`font-weight: ${FONT_WEIGHT_REGULAR}; font-size: 14px;`}
|
|
62
66
|
/>
|
|
63
67
|
</Cluster>
|
|
64
68
|
<Box padding="0" key={t.id}>
|
|
@@ -70,7 +74,7 @@ const PaymentDetailsContent = ({
|
|
|
70
74
|
<SolidDivider />
|
|
71
75
|
</Box>
|
|
72
76
|
<LabeledAmount
|
|
73
|
-
extraStyles={`font-weight: ${FONT_WEIGHT_REGULAR};`}
|
|
77
|
+
extraStyles={`font-weight: ${FONT_WEIGHT_REGULAR}; font-size: 14px;`}
|
|
74
78
|
label="Amount paid"
|
|
75
79
|
amount={displayCurrency(voidableAmountPaid)}
|
|
76
80
|
/>
|
|
@@ -79,7 +83,7 @@ const PaymentDetailsContent = ({
|
|
|
79
83
|
{!hasVoidablePaymentsSection && !!lineItemElems.length && (
|
|
80
84
|
<SolidDivider /> // avoids duplicate dividers -> case of voidable payment section, that acts as divider
|
|
81
85
|
)}
|
|
82
|
-
{subtotal
|
|
86
|
+
{subtotal ? (
|
|
83
87
|
<>
|
|
84
88
|
<Box padding="0.5rem 0">
|
|
85
89
|
<LabeledAmount
|
|
@@ -91,6 +95,8 @@ const PaymentDetailsContent = ({
|
|
|
91
95
|
</Box>
|
|
92
96
|
<SolidDivider />
|
|
93
97
|
</>
|
|
98
|
+
) : (
|
|
99
|
+
<></>
|
|
94
100
|
)}
|
|
95
101
|
<LabeledAmount
|
|
96
102
|
as="p"
|