@thecb/components 5.8.1-beta.3 → 5.8.1-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
|
@@ -40,11 +40,16 @@ const Obligation = ({
|
|
|
40
40
|
borderRadius="4px"
|
|
41
41
|
boxShadow={boxShadowValue}
|
|
42
42
|
as="section"
|
|
43
|
-
aria-label={`${obligation
|
|
43
|
+
aria-label={`${obligation?.description ??
|
|
44
|
+
"account"} ${obligation?.subDescription ?? obligationAssocID}`}
|
|
44
45
|
>
|
|
45
46
|
<Box background={WHITE}>
|
|
46
47
|
<Stack childGap="14px">
|
|
47
|
-
<Box
|
|
48
|
+
<Box
|
|
49
|
+
key={`${obligations?.[0].id}-top`}
|
|
50
|
+
padding="0 8px"
|
|
51
|
+
minWidth="100%"
|
|
52
|
+
>
|
|
48
53
|
<Cluster
|
|
49
54
|
justify="space-between"
|
|
50
55
|
align="center"
|
|
@@ -63,8 +68,8 @@ const Obligation = ({
|
|
|
63
68
|
/>
|
|
64
69
|
)}
|
|
65
70
|
<TitleModule
|
|
66
|
-
title={obligation
|
|
67
|
-
subtitle={obligation
|
|
71
|
+
title={obligation?.description}
|
|
72
|
+
subtitle={obligation?.subDescription}
|
|
68
73
|
titleColor={BRIGHT_GREY}
|
|
69
74
|
isMobile={isMobile}
|
|
70
75
|
/>
|
|
@@ -72,7 +77,7 @@ const Obligation = ({
|
|
|
72
77
|
</Box>
|
|
73
78
|
{!isMobile && (
|
|
74
79
|
<AmountModule
|
|
75
|
-
totalAmountDue={obligations
|
|
80
|
+
totalAmountDue={obligations?.reduce(
|
|
76
81
|
(acc, curr) => acc + curr.amountDue,
|
|
77
82
|
0
|
|
78
83
|
)}
|
|
@@ -137,7 +142,7 @@ const Obligation = ({
|
|
|
137
142
|
>
|
|
138
143
|
<Box background={ATHENS_GREY}>
|
|
139
144
|
<Stack childGap="14px">
|
|
140
|
-
<Box key={`${
|
|
145
|
+
<Box key={`${obligationAssocID}-top`} padding="0 8px" minWidth="100%">
|
|
141
146
|
<Cluster
|
|
142
147
|
justify="space-between"
|
|
143
148
|
align="center"
|