@thecb/components 11.1.12-beta.3 → 11.1.13-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 +125 -364
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +125 -364
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +20 -29
- package/src/components/atoms/icons/NotFoundIcon.js +70 -333
- package/src/components/molecules/obligation/Obligation.js +7 -0
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +37 -2
- package/src/components/molecules/obligation/modules/InactiveTitleModule.js +1 -1
- package/src/components/molecules/partial-amount-form/PartialAmountField.js +5 -34
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/molecules/partial-amount-form/PartialAmountField.theme.js +0 -7
package/package.json
CHANGED
|
@@ -99,7 +99,6 @@ const FormattedInputField = styled(({ showErrors, themeValues, ...props }) => (
|
|
|
99
99
|
|
|
100
100
|
const FormInput = ({
|
|
101
101
|
type = "text",
|
|
102
|
-
labelDisplayOverride = null,
|
|
103
102
|
labelTextWhenNoError = "",
|
|
104
103
|
errorMessages,
|
|
105
104
|
isNum = false,
|
|
@@ -148,47 +147,39 @@ const FormInput = ({
|
|
|
148
147
|
<Box padding="0">
|
|
149
148
|
{helperModal ? (
|
|
150
149
|
<Cluster justify="space-between" align="center">
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
variant={labelTextVariant}
|
|
158
|
-
weight={themeValues.fontWeight}
|
|
159
|
-
extraStyles={`word-break: break-word;
|
|
150
|
+
<Text
|
|
151
|
+
as="label"
|
|
152
|
+
color={themeValues.labelColor}
|
|
153
|
+
variant={labelTextVariant}
|
|
154
|
+
weight={themeValues.fontWeight}
|
|
155
|
+
extraStyles={`word-break: break-word;
|
|
160
156
|
font-family: Public Sans;
|
|
161
157
|
&::first-letter {
|
|
162
158
|
text-transform: uppercase;
|
|
163
159
|
}`}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
)}
|
|
160
|
+
id={createIdFromString(labelTextWhenNoError)}
|
|
161
|
+
>
|
|
162
|
+
{labelTextWhenNoError}
|
|
163
|
+
</Text>
|
|
169
164
|
{helperModal()}
|
|
170
165
|
</Cluster>
|
|
171
166
|
) : (
|
|
172
167
|
<Box padding="0" minWidth="100%">
|
|
173
168
|
<Cluster justify="space-between" align="center">
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
variant={labelTextVariant}
|
|
181
|
-
fontWeight={themeValues.fontWeight}
|
|
182
|
-
extraStyles={`word-break: break-word;
|
|
169
|
+
<Text
|
|
170
|
+
as="label"
|
|
171
|
+
color={themeValues.labelColor}
|
|
172
|
+
variant={labelTextVariant}
|
|
173
|
+
fontWeight={themeValues.fontWeight}
|
|
174
|
+
extraStyles={`word-break: break-word;
|
|
183
175
|
font-family: Public Sans;
|
|
184
176
|
&::first-letter {
|
|
185
177
|
text-transform: uppercase;
|
|
186
178
|
}`}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
)}
|
|
179
|
+
id={createIdFromString(labelTextWhenNoError)}
|
|
180
|
+
>
|
|
181
|
+
{labelTextWhenNoError}
|
|
182
|
+
</Text>
|
|
192
183
|
{type === "password" && (
|
|
193
184
|
<Text
|
|
194
185
|
variant={labelTextVariant}
|
|
@@ -1,342 +1,79 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
const NotFoundIcon =
|
|
3
|
+
const NotFoundIcon = props => (
|
|
4
4
|
<svg
|
|
5
|
-
width="548px"
|
|
6
|
-
height="308px"
|
|
7
|
-
viewBox="0 0 548 308"
|
|
8
|
-
version="1.1"
|
|
9
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
|
|
6
|
+
width="400"
|
|
7
|
+
height="211"
|
|
8
|
+
viewBox="0 0 400 211"
|
|
9
|
+
fill="none"
|
|
10
|
+
aria-label="Error: Not Found"
|
|
11
|
+
{...props}
|
|
11
12
|
>
|
|
12
|
-
<g
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
></line>
|
|
38
|
-
<line
|
|
39
|
-
x1="512.9402"
|
|
40
|
-
y1="1.326"
|
|
41
|
-
x2="483.1052"
|
|
42
|
-
y2="1.674"
|
|
43
|
-
id="baseline-right---02"
|
|
44
|
-
></line>
|
|
45
|
-
<line
|
|
46
|
-
x1="143.1111"
|
|
47
|
-
y1="1.326"
|
|
48
|
-
x2="90.7391"
|
|
49
|
-
y2="1.674"
|
|
50
|
-
id="baseline-left---01"
|
|
51
|
-
></line>
|
|
52
|
-
<line
|
|
53
|
-
x1="71.179"
|
|
54
|
-
y1="1.326"
|
|
55
|
-
x2="0.5162"
|
|
56
|
-
y2="0.9498"
|
|
57
|
-
id="baseline-left---02"
|
|
58
|
-
></line>
|
|
59
|
-
</g>
|
|
60
|
-
<path
|
|
61
|
-
d="M151.968,73 L391.689,73 C395.538,73 398.658,76.12 398.658,79.968 L398.658,258.366 C398.658,262.214 395.538,265.334 391.689,265.334 L151.968,265.334 C148.119,265.334 145,262.214 145,258.366 L145,79.968 C145,76.12 148.119,73 151.968,73"
|
|
62
|
-
id="browser-background"
|
|
63
|
-
fill="#FEFEFE"
|
|
64
|
-
></path>
|
|
65
|
-
<g id="binoculars" transform="translate(209.811300, 116.913100)">
|
|
66
|
-
<path
|
|
67
|
-
d="M97.5616,55.749 C112.9566,55.749 125.4356,43.269 125.4356,27.874 C125.4356,12.479 112.9566,0 97.5616,0 C82.1656,0 69.6866,12.479 69.6866,27.874 C69.6866,43.269 82.1656,55.749 97.5616,55.749 Z"
|
|
68
|
-
id="binocular-right"
|
|
69
|
-
stroke="#3B414D"
|
|
70
|
-
strokeWidth="5.575"
|
|
71
|
-
fill="#E4F4FD"
|
|
72
|
-
></path>
|
|
73
|
-
<g id="binocular-center" transform="translate(49.189100, 8.087300)">
|
|
74
|
-
<path
|
|
75
|
-
d="M2.22044605e-13,3.484 C4.718,1.161 9.085,-2.84217094e-14 13.102,-2.84217094e-14 C17.117,-2.84217094e-14 21.112,1.161 25.087,3.484 L21.2,11.743 L21.603,19.512 L3.484,19.512 L3.854,11.601 L2.22044605e-13,3.484 Z"
|
|
76
|
-
id="Fill-1"
|
|
77
|
-
fill="#3B414D"
|
|
78
|
-
></path>
|
|
79
|
-
<path
|
|
80
|
-
d="M15.1055,8.7316 C15.1055,10.1936 13.9205,11.3786 12.4595,11.3786 C10.9975,11.3786 9.8115,10.1936 9.8115,8.7316 C9.8115,7.2696 10.9975,6.0846 12.4595,6.0846 C13.9205,6.0846 15.1055,7.2696 15.1055,8.7316"
|
|
81
|
-
id="Fill-4"
|
|
82
|
-
fill="#FEFEFE"
|
|
83
|
-
></path>
|
|
84
|
-
</g>
|
|
85
|
-
<path
|
|
86
|
-
d="M27.875,55.749 C43.27,55.749 55.749,43.269 55.749,27.874 C55.749,12.479 43.27,0 27.875,0 C12.48,0 -1.13686838e-13,12.479 -1.13686838e-13,27.874 C-1.13686838e-13,43.269 12.48,55.749 27.875,55.749 Z"
|
|
87
|
-
id="binocular-left"
|
|
88
|
-
stroke="#3B414D"
|
|
89
|
-
strokeWidth="5.575"
|
|
90
|
-
fill="#E4F4FD"
|
|
91
|
-
></path>
|
|
92
|
-
<path
|
|
93
|
-
d="M20.1887,30.6619 C21.3567,27.4039 24.3487,25.0869 27.8547,25.0869 C31.3597,25.0869 34.3517,27.4039 35.5197,30.6619"
|
|
94
|
-
id="eye-left"
|
|
95
|
-
stroke="#3B414D"
|
|
96
|
-
strokeWidth="5.575"
|
|
97
|
-
strokeLinecap="round"
|
|
98
|
-
strokeLinejoin="round"
|
|
99
|
-
></path>
|
|
100
|
-
<path
|
|
101
|
-
d="M90.1887,30.6619 C91.3567,27.4039 94.3487,25.0869 97.8547,25.0869 C101.3597,25.0869 104.3517,27.4039 105.5197,30.6619"
|
|
102
|
-
id="eye-right"
|
|
103
|
-
stroke="#3B414D"
|
|
104
|
-
strokeWidth="5.575"
|
|
105
|
-
strokeLinecap="round"
|
|
106
|
-
strokeLinejoin="round"
|
|
107
|
-
></path>
|
|
108
|
-
</g>
|
|
109
|
-
<path
|
|
110
|
-
d="M292.191,186 L292.191,186 C292.191,189.803 289.108,192.886 285.305,192.886 L258.885,192.886 C255.083,192.886 252,189.803 252,186"
|
|
111
|
-
id="mouth"
|
|
112
|
-
stroke="#3B414D"
|
|
113
|
-
strokeWidth="5.575"
|
|
114
|
-
strokeLinecap="round"
|
|
115
|
-
></path>
|
|
116
|
-
<g id="browser-top" transform="translate(145.000000, 73.000000)">
|
|
117
|
-
<polygon
|
|
118
|
-
id="background"
|
|
119
|
-
fill="#E4E6EB"
|
|
120
|
-
points="0 26 254 26 254 0 0 0"
|
|
121
|
-
></polygon>
|
|
122
|
-
<circle id="dot" fill="#3B414D" cx="13" cy="13" r="3"></circle>
|
|
123
|
-
<circle id="dot" fill="#3B414D" cx="23" cy="13" r="3"></circle>
|
|
124
|
-
<circle id="dot" fill="#3B414D" cx="33" cy="13" r="3"></circle>
|
|
125
|
-
<line
|
|
126
|
-
x1="3"
|
|
127
|
-
y1="26"
|
|
128
|
-
x2="251"
|
|
129
|
-
y2="26"
|
|
130
|
-
id="line"
|
|
131
|
-
stroke="#3B414D"
|
|
132
|
-
strokeWidth="6"
|
|
133
|
-
></line>
|
|
134
|
-
</g>
|
|
135
|
-
<g
|
|
136
|
-
id="sign-post"
|
|
137
|
-
transform="translate(427.000000, 88.999700)"
|
|
138
|
-
strokeWidth="6"
|
|
139
|
-
>
|
|
140
|
-
<polyline
|
|
141
|
-
id="sign-post---left"
|
|
142
|
-
stroke="#3B414D"
|
|
143
|
-
strokeLinecap="round"
|
|
144
|
-
strokeLinejoin="round"
|
|
145
|
-
points="39.196 47.0005 7.06 50.5815 5.68434189e-14 64.7845 7.06 77.6745 54.679 72.3625 54.679 175.7975 40.451 175.7975"
|
|
146
|
-
></polyline>
|
|
147
|
-
<polyline
|
|
148
|
-
id="sign-post---right"
|
|
149
|
-
stroke="#3B414D"
|
|
150
|
-
strokeLinecap="round"
|
|
151
|
-
strokeLinejoin="round"
|
|
152
|
-
points="54.6794 54.6792 107.8214 60.9392 114.3504 49.0202 107.8214 35.8872 54.6794 29.6262 54.6794 13.4842"
|
|
153
|
-
></polyline>
|
|
154
|
-
<path
|
|
155
|
-
d="M62.9412,7.971 C62.9412,12.373 59.3732,15.941 54.9702,15.941 C50.5682,15.941 47.0002,12.373 47.0002,7.971 C47.0002,3.569 50.5682,1.59872116e-14 54.9702,1.59872116e-14 C59.3732,1.59872116e-14 62.9412,3.569 62.9412,7.971"
|
|
156
|
-
id="sign-post---top"
|
|
157
|
-
stroke="#27A9E1"
|
|
158
|
-
fill="#E4F4FD"
|
|
159
|
-
></path>
|
|
160
|
-
</g>
|
|
161
|
-
<path
|
|
162
|
-
d="M330.327,294.916 C330.327,302.049 304.286,307.832 272.163,307.832 C240.04,307.832 214,302.049 214,294.916 C214,287.783 240.04,282 272.163,282 C304.286,282 330.327,287.783 330.327,294.916"
|
|
163
|
-
id="shadow"
|
|
164
|
-
fill="#EAF4EB"
|
|
165
|
-
></path>
|
|
166
|
-
<g
|
|
167
|
-
id="legs"
|
|
168
|
-
transform="translate(248.000000, 268.000000)"
|
|
169
|
-
stroke="#45B770"
|
|
170
|
-
strokeLinecap="round"
|
|
171
|
-
strokeLinejoin="round"
|
|
172
|
-
strokeWidth="8.362"
|
|
173
|
-
>
|
|
174
|
-
<polyline
|
|
175
|
-
id="Stroke-1"
|
|
176
|
-
points="15.817 -2.13162821e-14 15.817 24.795 3.55271368e-15 24.795"
|
|
177
|
-
></polyline>
|
|
178
|
-
<polyline
|
|
179
|
-
id="Stroke-3"
|
|
180
|
-
points="31.3102 -2.30926389e-14 31.3102 25.574 47.1272 25.574"
|
|
181
|
-
></polyline>
|
|
182
|
-
</g>
|
|
183
|
-
<line
|
|
184
|
-
x1="143.441"
|
|
185
|
-
y1="205.181"
|
|
186
|
-
x2="121.181"
|
|
187
|
-
y2="224.512"
|
|
188
|
-
id="arm-left---top"
|
|
189
|
-
stroke="#45B770"
|
|
190
|
-
strokeWidth="8"
|
|
191
|
-
strokeLinecap="round"
|
|
192
|
-
strokeLinejoin="round"
|
|
193
|
-
></line>
|
|
194
|
-
<line
|
|
195
|
-
x1="399.988281"
|
|
196
|
-
y1="213.830078"
|
|
197
|
-
x2="416.9162"
|
|
198
|
-
y2="196.8489"
|
|
199
|
-
id="right-right---bottom"
|
|
200
|
-
stroke="#45B770"
|
|
201
|
-
strokeWidth="8"
|
|
202
|
-
strokeLinecap="round"
|
|
203
|
-
strokeLinejoin="round"
|
|
204
|
-
></line>
|
|
205
|
-
<path
|
|
206
|
-
d="M151.969,73 L391.69,73 C395.538,73 398.658,76.12 398.658,79.969 L398.658,258.366 C398.658,262.214 395.538,265.334 391.69,265.334 L151.969,265.334 C148.12,265.334 145,262.214 145,258.366 L145,79.969 C145,76.12 148.12,73 151.969,73 Z"
|
|
207
|
-
id="browser-border"
|
|
208
|
-
stroke="#3B414D"
|
|
209
|
-
strokeWidth="6"
|
|
210
|
-
></path>
|
|
211
|
-
<line
|
|
212
|
-
x1="121.1812"
|
|
213
|
-
y1="224.512"
|
|
214
|
-
x2="171.9052"
|
|
215
|
-
y2="236.375"
|
|
216
|
-
id="arm-left---bottom"
|
|
217
|
-
stroke="#45B770"
|
|
218
|
-
strokeWidth="8"
|
|
219
|
-
strokeLinecap="round"
|
|
220
|
-
strokeLinejoin="round"
|
|
221
|
-
></line>
|
|
222
|
-
<line
|
|
223
|
-
x1="416.916"
|
|
224
|
-
y1="196.8493"
|
|
225
|
-
x2="348.522"
|
|
226
|
-
y2="153.6733"
|
|
227
|
-
id="arm-right---top"
|
|
228
|
-
stroke="#45B770"
|
|
229
|
-
strokeWidth="8"
|
|
230
|
-
strokeLinecap="round"
|
|
231
|
-
strokeLinejoin="round"
|
|
232
|
-
></line>
|
|
233
|
-
<path
|
|
234
|
-
d="M344.1914,160.9806 C346.1454,156.3596 347.2264,151.2786 347.2264,145.9456 C347.2264,143.5286 347.0044,141.1636 346.5794,138.8686"
|
|
235
|
-
id="hand-left"
|
|
236
|
-
stroke="#45B770"
|
|
237
|
-
strokeWidth="8"
|
|
238
|
-
strokeLinecap="round"
|
|
239
|
-
strokeLinejoin="round"
|
|
240
|
-
></path>
|
|
241
|
-
<g
|
|
242
|
-
id="map"
|
|
243
|
-
transform="translate(183.000000, 203.000000)"
|
|
244
|
-
strokeLinejoin="round"
|
|
245
|
-
>
|
|
246
|
-
<polygon
|
|
247
|
-
stroke="#3B414D"
|
|
248
|
-
strokeWidth="6"
|
|
249
|
-
fill="#E4F4FD"
|
|
250
|
-
points="69.3333333 0 34.6666667 8.12833265 0 0 0 69.8706676 34.6666667 78 69.3333333 69.8706676 104 78 104 8.12833265"
|
|
251
|
-
></polygon>
|
|
252
|
-
<line
|
|
253
|
-
x1="34.5"
|
|
254
|
-
y1="62.8644"
|
|
255
|
-
x2="34.5"
|
|
256
|
-
y2="55.5804"
|
|
257
|
-
id="map-line---left---02"
|
|
258
|
-
stroke="#28A7DF"
|
|
259
|
-
strokeWidth="4.878"
|
|
260
|
-
strokeLinecap="round"
|
|
261
|
-
></line>
|
|
262
|
-
<line
|
|
263
|
-
x1="34.5"
|
|
264
|
-
y1="45.03"
|
|
265
|
-
x2="34.5"
|
|
266
|
-
y2="22"
|
|
267
|
-
id="map-line---left---01"
|
|
268
|
-
stroke="#28A7DF"
|
|
269
|
-
strokeWidth="4.878"
|
|
270
|
-
strokeLinecap="round"
|
|
271
|
-
></line>
|
|
272
|
-
<line
|
|
273
|
-
x1="69.4391"
|
|
274
|
-
y1="54.9698"
|
|
275
|
-
x2="69.4391"
|
|
276
|
-
y2="37.1358"
|
|
277
|
-
id="map-line---right---02"
|
|
278
|
-
stroke="#28A7DF"
|
|
279
|
-
strokeWidth="4.878"
|
|
280
|
-
strokeLinecap="round"
|
|
281
|
-
></line>
|
|
282
|
-
<line
|
|
283
|
-
x1="69.4391"
|
|
284
|
-
y1="27.5738"
|
|
285
|
-
x2="69.4391"
|
|
286
|
-
y2="17.4388"
|
|
287
|
-
id="map-line---right---01"
|
|
288
|
-
stroke="#28A7DF"
|
|
289
|
-
strokeWidth="4.878"
|
|
290
|
-
strokeLinecap="round"
|
|
291
|
-
></line>
|
|
292
|
-
</g>
|
|
293
|
-
<g id="left-hand" transform="translate(173.473700, 226.000000)">
|
|
294
|
-
<path
|
|
295
|
-
d="M7.605,5.1029 C3.405,5.1029 -1.0658141e-13,8.5079 -1.0658141e-13,12.7079 C-1.0658141e-13,16.9089 3.405,20.3139 7.605,20.3139 L14.249,20.3139"
|
|
296
|
-
id="hand"
|
|
297
|
-
stroke="#45B770"
|
|
298
|
-
strokeWidth="8"
|
|
299
|
-
strokeLinecap="round"
|
|
300
|
-
strokeLinejoin="round"
|
|
301
|
-
></path>
|
|
302
|
-
<rect
|
|
303
|
-
id="cover"
|
|
304
|
-
fill="#3B414D"
|
|
305
|
-
x="6.5263"
|
|
306
|
-
y="0"
|
|
307
|
-
width="6"
|
|
308
|
-
height="9"
|
|
309
|
-
></rect>
|
|
310
|
-
</g>
|
|
311
|
-
<g
|
|
312
|
-
id="clouds"
|
|
313
|
-
transform="translate(44.000000, 0.000000)"
|
|
314
|
-
fill="#B8E4F4"
|
|
315
|
-
>
|
|
316
|
-
<path
|
|
317
|
-
d="M396.6868,87.0406 C394.3808,87.0406 392.2528,87.7836 390.5118,89.0306 C389.6798,80.0776 382.1498,73.0676 372.9798,73.0676 C364.9078,73.0676 358.1098,78.4996 356.0278,85.9056 C353.9528,84.3526 351.3838,83.4216 348.5928,83.4216 C341.7248,83.4216 336.1578,88.9886 336.1578,95.8566 C336.1578,102.7246 341.7248,108.2906 348.5928,108.2906 L396.6868,108.2906 C402.5548,108.2906 407.3118,103.5346 407.3118,97.6656 C407.3118,91.7976 402.5548,87.0406 396.6868,87.0406"
|
|
318
|
-
id="cloud---05"
|
|
319
|
-
></path>
|
|
320
|
-
<path
|
|
321
|
-
d="M320.0872,9.9 C318.8362,9.9 317.6522,10.175 316.5812,10.657 C315.5252,9.315 313.8902,8.45 312.0492,8.45 C311.5082,8.45 310.9862,8.529 310.4902,8.669 C308.5432,3.602 303.6442,5.68434189e-14 297.8922,5.68434189e-14 C291.6222,5.68434189e-14 286.3662,4.277 284.8442,10.069 C284.2972,9.959 283.7322,9.9 283.1522,9.9 C278.4272,9.9 274.5962,13.731 274.5962,18.457 C274.5962,23.183 278.4272,27.014 283.1522,27.014 L320.0872,27.014 C324.8132,27.014 328.6442,23.183 328.6442,18.457 C328.6442,13.731 324.8132,9.9 320.0872,9.9"
|
|
322
|
-
id="cloud---04"
|
|
323
|
-
></path>
|
|
324
|
-
<path
|
|
325
|
-
d="M198.5179,25.524 C195.7659,25.524 193.2259,26.41 191.1459,27.899 C190.1539,17.212 181.1649,8.845 170.2189,8.845 C160.5829,8.845 152.4689,15.329 149.9839,24.17 C147.5059,22.316 144.4409,21.204 141.1079,21.204 C132.9109,21.204 126.2649,27.85 126.2649,36.047 C126.2649,44.245 132.9109,50.891 141.1079,50.891 L198.5179,50.891 C205.5219,50.891 211.2009,45.212 211.2009,38.208 C211.2009,31.203 205.5219,25.524 198.5179,25.524"
|
|
326
|
-
id="cloud---03"
|
|
327
|
-
></path>
|
|
328
|
-
<path
|
|
329
|
-
d="M117.9359,151.1183 C116.6859,151.1183 115.5009,151.3933 114.4309,151.8753 C113.3739,150.5333 111.7379,149.6683 109.8979,149.6683 C109.3569,149.6683 108.8359,149.7473 108.3389,149.8873 C106.3919,144.8203 101.4929,141.2183 95.7409,141.2183 C89.4719,141.2183 84.2149,145.4953 82.6919,151.2873 C82.1459,151.1773 81.5809,151.1183 81.0019,151.1183 C76.2759,151.1183 72.4449,154.9493 72.4449,159.6753 C72.4449,164.4013 76.2759,168.2323 81.0019,168.2323 L117.9359,168.2323 C122.6619,168.2323 126.4929,164.4013 126.4929,159.6753 C126.4929,154.9493 122.6619,151.1183 117.9359,151.1183"
|
|
330
|
-
id="cloud---02"
|
|
331
|
-
></path>
|
|
332
|
-
<path
|
|
333
|
-
d="M45.491,85.3556 C44.241,85.3556 43.056,85.6306 41.985,86.1126 C40.929,84.7706 39.293,83.9056 37.453,83.9056 C36.912,83.9056 36.391,83.9846 35.894,84.1246 C33.947,79.0576 29.048,75.4556 23.296,75.4556 C17.027,75.4556 11.77,79.7326 10.247,85.5246 C9.701,85.4146 9.136,85.3556 8.557,85.3556 C3.831,85.3556 -1.13686838e-13,89.1866 -1.13686838e-13,93.9126 C-1.13686838e-13,98.6386 3.831,102.4696 8.557,102.4696 L45.491,102.4696 C50.217,102.4696 54.048,98.6386 54.048,93.9126 C54.048,89.1866 50.217,85.3556 45.491,85.3556"
|
|
334
|
-
id="cloud---01"
|
|
335
|
-
></path>
|
|
336
|
-
</g>
|
|
337
|
-
</g>
|
|
338
|
-
</g>
|
|
13
|
+
<g opacity="0.301503">
|
|
14
|
+
<path
|
|
15
|
+
d="M243.877 189.762C243.877 185.147 227.027 181.405 206.243 181.405C185.458 181.405 168.609 185.147 168.609 189.762C168.609 194.377 185.458 198.119 206.243 198.119C227.027 198.119 243.877 194.377 243.877 189.762Z"
|
|
16
|
+
fill="#3B5BDB"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
d="M161.882 35.8821C161.675 33.247 159.477 31.214 156.834 31.214H128.841C128.709 31.214 128.577 31.2191 128.446 31.2294C125.658 31.4477 123.575 33.8846 123.793 36.6724L124.003 39.3645C123.917 39.7848 123.882 40.2256 123.906 40.6798L124.108 44.6075H121.513C117.213 44.6075 113.909 48.1244 114.132 52.4627L119.589 158.508C119.813 162.847 123.479 166.364 127.778 166.364H276.988C281.287 166.364 284.592 162.847 284.369 158.508L278.911 52.4627C278.688 48.1244 275.022 44.6075 270.722 44.6075L162.564 44.6064L161.882 35.8821Z"
|
|
20
|
+
fill="#3B5BDB"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
d="M334.997 104.08C334.672 100.54 331.725 97.7696 328.136 97.7696C324.976 97.7696 322.316 99.9169 321.501 102.845C320.689 102.231 319.684 101.862 318.591 101.862C315.904 101.862 313.725 104.063 313.725 106.778C313.725 109.493 315.904 111.694 318.591 111.694H337.414C339.711 111.694 341.573 109.813 341.573 107.494C341.573 105.174 339.711 103.293 337.414 103.293C336.512 103.293 335.679 103.587 334.997 104.08Z"
|
|
24
|
+
fill="#3B5BDB"
|
|
25
|
+
/>
|
|
26
|
+
<path
|
|
27
|
+
d="M94.1431 61.1875C94.1431 60.5649 93.7639 60.0615 93.2973 60.0615H59.5459C59.0785 60.0615 58.7001 60.5649 58.7001 61.1875V110.694H94.1431V61.1875Z"
|
|
28
|
+
fill="#3B5BDB"
|
|
29
|
+
/>
|
|
30
|
+
<path
|
|
31
|
+
d="M48.6024 31.2272C47.2344 27.6658 43.7924 25.134 39.7509 25.134C35.3463 25.134 31.6527 28.1402 30.5826 32.2112C30.199 32.1339 29.802 32.0924 29.3952 32.0924C26.0746 32.0924 23.3829 34.7851 23.3829 38.1069C23.3829 41.4287 26.0746 44.1214 29.3952 44.1214H55.3454C58.6659 44.1214 61.3576 41.4287 61.3576 38.1069C61.3576 34.7851 58.6659 32.0924 55.3454 32.0924C54.4671 32.0924 53.6345 32.2857 52.8827 32.6245C52.1401 31.6813 50.9906 31.0733 49.6978 31.0733C49.3177 31.0733 48.9516 31.1288 48.6024 31.2272Z"
|
|
32
|
+
fill="#3B5BDB"
|
|
33
|
+
/>
|
|
34
|
+
<path
|
|
35
|
+
d="M309.54 17.8918C308.081 14.0929 304.41 11.3924 300.099 11.3924C295.4 11.3924 291.461 14.599 290.32 18.9414C289.91 18.8589 289.487 18.8147 289.052 18.8147C285.511 18.8147 282.64 21.6869 282.64 25.2301C282.64 28.7733 285.511 31.6456 289.052 31.6456H316.733C320.275 31.6456 323.146 28.7733 323.146 25.2301C323.146 21.6869 320.275 18.8147 316.733 18.8147C315.795 18.8147 314.908 19.0209 314.105 19.3823C313.314 18.3761 312.089 17.7276 310.709 17.7276C310.303 17.7276 309.912 17.7868 309.54 17.8918Z"
|
|
36
|
+
fill="#3B5BDB"
|
|
37
|
+
/>
|
|
339
38
|
</g>
|
|
39
|
+
<path
|
|
40
|
+
fillRule="evenodd"
|
|
41
|
+
clipRule="evenodd"
|
|
42
|
+
d="M181.134 41.3406C183.931 41.3406 186.198 43.6075 186.198 46.4039C186.198 46.5503 186.191 46.6966 186.179 46.8425L186.059 48.233C186.132 48.5976 186.164 48.9772 186.15 49.3671L186.018 53.1646H286.146C290.445 53.1646 293.812 56.5649 293.666 60.7595L290.1 163.291C289.954 167.486 286.351 170.886 282.051 170.886H132.842C128.542 170.886 125.175 167.486 125.321 163.291L128.887 60.7595C129.033 56.5649 132.636 53.1646 136.936 53.1646L142.591 53.1634L143.217 45.9652C143.444 43.3487 145.635 41.3406 148.261 41.3406H181.134Z"
|
|
43
|
+
fill="white"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
fillRule="evenodd"
|
|
47
|
+
clipRule="evenodd"
|
|
48
|
+
d="M102.337 67.4261C102.804 67.4261 103.183 67.7214 103.183 68.0859V114.262H67.7397V68.0859C67.7397 67.7214 68.1182 67.4261 68.5856 67.4261H102.337Z"
|
|
49
|
+
fill="#CACED8"
|
|
50
|
+
/>
|
|
51
|
+
<path
|
|
52
|
+
d="M156.073 30.3798C160.292 30.3798 163.843 33.7855 164.063 38.069L164.085 38.8089L182.156 38.8089C184.742 38.8089 187.026 40.1014 188.398 42.0755L270.722 42.0758C275.798 42.0758 280.165 45.7678 281.214 50.6334L286.146 50.6329C291.758 50.6329 296.224 55.0388 296.202 60.5352L296.196 60.8475L292.838 157.414L330.416 157.423C331.777 157.408 332.894 158.427 332.911 159.7C332.927 160.915 331.935 161.923 330.661 162.025L330.477 162.034L292.677 162.024L292.63 163.379C292.44 168.845 287.879 173.249 282.37 173.413L282.051 173.418H132.842C128.946 173.418 125.603 171.295 123.929 168.159C121.254 167.103 119.085 164.99 117.937 162.355L89.1371 162.355C87.711 162.338 86.569 161.168 86.5863 159.742C86.6027 158.381 87.6696 157.278 89.0068 157.196L89.1996 157.191L116.986 157.19L111.604 52.5928C111.312 46.9184 115.597 42.2485 121.2 42.0805L121.496 42.0747L121.377 38.2783C121.159 34.0413 124.357 30.5386 128.539 30.385L128.826 30.3798H156.073ZM182.156 43.8722H149.331C148.059 43.8722 146.985 44.8155 146.82 46.0763L145.566 55.6946L136.936 55.6962C133.988 55.6962 131.515 58.0292 131.417 60.8475L127.851 163.379C127.755 166.127 129.961 168.354 132.842 168.354H282.051C285 168.354 287.472 166.021 287.57 163.203L291.136 60.6715C291.232 57.9233 289.026 55.6962 286.145 55.6962L183.496 55.695L184.667 46.7313C184.681 46.6227 184.688 46.5134 184.688 46.4039C184.688 45.0057 183.554 43.8722 182.156 43.8722ZM362.279 157.192C363.704 157.154 364.891 158.28 364.928 159.705C364.964 161.066 363.94 161.702 362.607 161.835L362.414 161.848L343.11 162.354C341.684 162.392 340.498 161.267 340.461 159.841C340.425 158.48 341.449 157.337 342.782 157.204L342.975 157.192H362.279ZM79.0911 159.64C79.1613 161 78.1668 162.168 76.8375 162.335L76.6454 162.352H66.8241C65.3998 162.425 64.1856 161.33 64.1121 159.906C64.042 158.547 65.0365 157.379 66.3658 157.211L66.5579 157.194H76.3792C77.8035 157.121 79.0176 158.216 79.0911 159.64ZM156.073 35.4431H128.826C127.477 35.4431 126.452 36.4714 126.432 37.8753L126.436 38.069L126.72 47.1391H121.513C118.755 47.1391 116.643 49.2984 116.653 52.0709L116.66 52.3326L122.118 158.378C122.164 159.286 122.433 160.148 122.869 160.908L126.357 60.6715C126.551 55.1006 131.285 50.6329 136.935 50.6329L141.119 50.6317L141.799 45.4215C142.28 41.7383 145.348 38.9585 149.031 38.8148L149.331 38.8089L159.02 38.8089L159.004 38.2783C158.928 36.794 157.7 35.5552 156.269 35.4502L156.073 35.4431ZM223.253 116.891L223.44 116.895C224.763 116.981 225.766 118.122 225.68 119.444C225.447 123.071 222.431 125.991 218.829 126.139L218.543 126.145H201.449C197.602 126.145 194.639 122.978 194.887 119.135C194.972 117.813 196.113 116.81 197.435 116.895C198.695 116.977 199.665 118.015 199.68 119.257L199.676 119.444C199.61 120.463 200.293 121.254 201.273 121.338L201.449 121.346H218.543C219.675 121.346 220.701 120.438 220.871 119.323L220.892 119.135C220.973 117.876 222.012 116.906 223.253 116.891ZM103.183 65.8452L103.183 66.3191C103.908 66.6033 104.449 67.2481 104.449 68.086V114.262C104.449 114.961 103.882 115.527 103.183 115.527H67.7398C67.0407 115.527 66.474 114.961 66.474 114.262V68.086C66.474 67.2481 67.0145 66.6033 67.7396 66.3191L67.7398 65.8452H103.183ZM101.916 71.9304H69.0048L69.005 112.995H101.916L101.916 71.9304ZM85.0096 104.616C85.7315 104.616 86.3167 105.201 86.3167 105.923V108.678C86.3167 109.4 85.7315 109.985 85.0096 109.985H75.0279C74.306 109.985 73.7207 109.4 73.7207 108.678V105.923C73.7207 105.201 74.306 104.616 75.0279 104.616H85.0096ZM83.7012 107.229H76.3341V107.37H83.7012V107.229ZM97.4683 92.7215C98.1674 92.7215 98.7341 93.2883 98.7341 93.9874V100.316C98.7341 101.016 98.1674 101.582 97.4683 101.582H73.4176C72.7185 101.582 72.1518 101.016 72.1518 100.316V93.9874C72.1518 93.2883 72.7185 92.7215 73.4176 92.7215H97.4683ZM96.2025 95.2532H74.6835V99.0506H96.2025V95.2532ZM197.487 88.3647C200.794 88.3647 203.588 90.5375 204.516 93.6944C204.89 94.9657 204.163 96.2994 202.891 96.6732C201.681 97.0292 200.413 96.3863 199.972 95.226L199.913 95.0482C199.575 93.8998 198.628 93.1634 197.487 93.1634C196.329 93.1634 195.192 93.9189 194.608 95.083L194.505 95.3059C193.988 96.5264 192.581 97.0973 191.36 96.5811C190.14 96.0649 189.569 94.6571 190.085 93.4366C191.36 90.4209 194.27 88.3647 197.487 88.3647ZM227.251 88.3647C230.558 88.3647 233.352 90.5375 234.28 93.6944C234.654 94.9657 233.926 96.2994 232.655 96.6732C231.444 97.0292 230.177 96.3863 229.736 95.226L229.676 95.0482C229.338 93.8998 228.392 93.1634 227.251 93.1634C226.093 93.1634 224.956 93.9189 224.371 95.083L224.268 95.3059C223.752 96.5264 222.344 97.0973 221.124 96.5811C219.903 96.0649 219.332 94.6571 219.848 93.4366C221.124 90.4209 224.033 88.3647 227.251 88.3647ZM97.4683 81.3291C98.1674 81.3291 98.7341 81.8959 98.7341 82.595V88.9241C98.7341 89.6232 98.1674 90.1899 97.4683 90.1899H73.4176C72.7185 90.1899 72.1518 89.6232 72.1518 88.9241V82.595C72.1518 81.8959 72.7185 81.3291 73.4176 81.3291H97.4683ZM96.2025 83.8608H74.6835V87.6582H96.2025V83.8608ZM84.9621 75.7452C85.684 75.7452 86.2692 76.3305 86.2692 77.0524C86.2692 77.7262 85.7594 78.2809 85.1045 78.3519L84.9621 78.3595H73.5214C72.7995 78.3595 72.2143 77.7743 72.2143 77.0524C72.2143 76.3786 72.7241 75.8239 73.379 75.7529L73.5214 75.7452H84.9621ZM270.722 47.1391L189.714 47.138L189.687 47.3866L189.263 50.6317L275.919 50.6332C275.065 48.6752 273.15 47.2546 270.989 47.1458L270.722 47.1391Z"
|
|
53
|
+
fill="#3B414D"
|
|
54
|
+
/>
|
|
55
|
+
<path
|
|
56
|
+
d="M213.449 173.34L213.449 186.311L221.101 186.311C222.463 186.311 223.578 187.365 223.676 188.701L223.684 188.894C223.684 190.255 222.63 191.37 221.294 191.469L221.101 191.476H210.867C209.506 191.476 208.391 190.423 208.292 189.086L208.285 188.894V173.34H213.449ZM203.425 173.34V188.39C203.425 189.751 202.371 190.866 201.035 190.965L200.843 190.972H190.608C189.182 190.972 188.026 189.816 188.026 188.39C188.026 187.028 189.08 185.913 190.416 185.814L190.608 185.807L198.259 185.806L198.26 173.34H203.425ZM101.899 120.835C103.325 120.835 104.481 121.992 104.481 123.418C104.481 124.779 103.428 125.894 102.091 125.993L101.899 126L96.7188 126L111.219 140.67L123.794 129.751C123.846 129.705 123.971 129.614 124.036 129.568L124.055 129.553L124.054 129.571C124.047 129.692 124.044 130.316 124.042 131.14L124.042 133.914C124.042 134.017 124.042 134.119 124.041 134.219L124.04 135.062C124.039 135.839 124.035 136.381 124.027 136.389C121.527 138.56 117.777 141.816 112.777 146.158L112.755 146.175L112.734 146.195C112.709 146.216 112.684 146.236 112.658 146.256L112.777 146.158C112.717 146.21 112.656 146.259 112.593 146.304C112.56 146.328 112.526 146.351 112.492 146.373C112.466 146.39 112.439 146.407 112.412 146.423C112.379 146.443 112.346 146.462 112.312 146.481C112.282 146.497 112.252 146.512 112.222 146.527C112.195 146.541 112.167 146.554 112.139 146.566C112.105 146.581 112.071 146.596 112.037 146.609C112 146.624 111.962 146.638 111.924 146.651C111.898 146.66 111.873 146.668 111.848 146.676C111.816 146.686 111.783 146.695 111.751 146.704C111.704 146.716 111.657 146.727 111.61 146.737C111.598 146.739 111.585 146.742 111.573 146.744C111.519 146.755 111.466 146.763 111.412 146.77C111.394 146.772 111.376 146.774 111.357 146.776C111.311 146.781 111.265 146.785 111.218 146.787C111.192 146.789 111.165 146.789 111.139 146.79C111.105 146.791 111.07 146.791 111.035 146.79C111 146.789 110.965 146.788 110.93 146.786C110.901 146.784 110.871 146.782 110.842 146.779C110.801 146.775 110.76 146.771 110.72 146.765C110.698 146.762 110.677 146.758 110.656 146.755C110.613 146.748 110.57 146.74 110.527 146.73C110.491 146.722 110.456 146.714 110.421 146.704C110.392 146.697 110.362 146.688 110.333 146.679C110.211 146.642 110.091 146.596 109.974 146.541C109.912 146.511 109.851 146.479 109.792 146.445C109.723 146.405 109.655 146.361 109.589 146.314C109.573 146.303 109.557 146.291 109.541 146.279C109.5 146.249 109.46 146.218 109.421 146.185C109.418 146.182 109.414 146.178 109.411 146.175L109.358 146.13C109.325 146.1 109.293 146.069 109.261 146.038L109.247 146.024L91.2013 127.765C90.7168 127.274 90.4687 126.639 90.4562 126L79.1139 126C77.6877 126 76.5316 124.844 76.5316 123.418C76.5316 122.056 77.585 120.941 78.9212 120.843L79.1139 120.835H101.899ZM93.2973 58.7957C94.4918 58.7957 95.3225 59.8212 95.4026 61.0002L95.409 61.1875V65.846C95.409 65.846 94.7763 65.8673 94.1435 65.8781L94.1431 65.968H67.2122V68.3806L59.9656 68.3805L59.9663 90.5845C60.9638 90.2603 62.0224 90.0716 63.1203 90.0398L63.4526 90.035C69.6779 90.035 74.7245 95.0815 74.7245 101.307C74.7245 107.532 69.6779 112.579 63.4526 112.579C62.161 112.579 60.9202 112.361 59.7646 111.961L58.7001 111.96C58.0518 111.96 57.5174 111.473 57.4431 110.845C54.2809 108.848 52.1808 105.323 52.1808 101.307C52.1808 97.2947 54.277 93.7722 57.4339 91.7747L57.4343 61.1875C57.4343 59.9946 58.2047 58.9096 59.3603 58.8041L59.5459 58.7957H93.2973ZM67.7397 80.2265V81.4923L63.4987 81.4911V85.0785L67.7397 85.0794V86.3452H62.2329V80.2265H67.7397ZM67.0836 72.6006V73.8664L63.4987 73.8658V77.4532L67.0836 77.4534V78.7193H62.2329V72.6006H67.0836Z"
|
|
57
|
+
fill="#3B5BDB"
|
|
58
|
+
/>
|
|
59
|
+
<path
|
|
60
|
+
d="M293.671 131.646C293.814 129.658 293.824 129.91 293.814 129.9L293.463 129.568L293.472 129.575C293.539 129.623 294.254 130.336 294.304 130.38L308.107 142.259L308.262 142.404C309.117 143.278 309.237 144.635 308.561 145.642C308.337 146.419 307.754 147.079 306.933 147.367L283.243 155.68C282.59 159.159 279.537 161.791 275.869 161.791H271.57L271.377 161.784C270.041 161.686 268.987 160.57 268.987 159.209C268.987 157.783 270.144 156.627 271.57 156.627H275.869L276.051 156.62C277.257 156.527 278.207 155.518 278.207 154.288C278.207 152.996 277.16 151.949 275.869 151.949L275.676 151.942C274.34 151.844 273.286 150.728 273.286 149.367C273.286 147.941 274.442 146.785 275.869 146.785C278.638 146.785 281.058 148.286 282.357 150.519L301.859 143.673L293.471 136.389C293.56 136.466 293.46 135.953 293.458 135.312L293.457 134.795L293.457 134.513L293.671 131.646Z"
|
|
61
|
+
fill="#3B5BDB"
|
|
62
|
+
/>
|
|
63
|
+
<circle cx="63.5" cy="101.5" r="11.5" fill="#D11053" />
|
|
64
|
+
<path
|
|
65
|
+
fillRule="evenodd"
|
|
66
|
+
clipRule="evenodd"
|
|
67
|
+
d="M68.5537 98.1186L65.3663 101.306L68.5537 104.495L66.6408 106.408L63.4526 103.22L60.2645 106.408L58.3516 104.495L61.539 101.306L58.3516 98.1186L60.2645 96.2057L63.4526 99.3923L66.6408 96.2057L68.5537 98.1186Z"
|
|
68
|
+
fill="white"
|
|
69
|
+
/>
|
|
70
|
+
<rect x="189" y="112" width="47" height="21" fill="white" />
|
|
71
|
+
<path
|
|
72
|
+
d="M226 125V125C226 122.239 223.761 120 221 120L202 120C199.239 120 197 122.239 197 125V125"
|
|
73
|
+
stroke="#3B414D"
|
|
74
|
+
strokeWidth="5"
|
|
75
|
+
strokeLinecap="round"
|
|
76
|
+
/>
|
|
340
77
|
</svg>
|
|
341
78
|
);
|
|
342
79
|
|
|
@@ -39,6 +39,7 @@ const Obligation = ({
|
|
|
39
39
|
inactiveLookupTitle = "",
|
|
40
40
|
inactiveLookupInput = "Account",
|
|
41
41
|
inactiveLookupValue = "",
|
|
42
|
+
inactiveCanNavigateToAccountDetails = false,
|
|
42
43
|
isInCustomerManagement = false,
|
|
43
44
|
themeValues,
|
|
44
45
|
cartEnabled = false,
|
|
@@ -349,6 +350,9 @@ const Obligation = ({
|
|
|
349
350
|
allowedPaymentInstruments={allowedPaymentInstruments}
|
|
350
351
|
disableActions={isInCustomerManagement}
|
|
351
352
|
showRemoveButton={showRemoveButton}
|
|
353
|
+
inactiveCanNavigateToAccountDetails={
|
|
354
|
+
inactiveCanNavigateToAccountDetails
|
|
355
|
+
}
|
|
352
356
|
/>
|
|
353
357
|
)}
|
|
354
358
|
</Cluster>
|
|
@@ -373,6 +377,9 @@ const Obligation = ({
|
|
|
373
377
|
allowedPaymentInstruments={allowedPaymentInstruments}
|
|
374
378
|
disableActions={isInCustomerManagement}
|
|
375
379
|
showRemoveButton={showRemoveButton}
|
|
380
|
+
inactiveCanNavigateToAccountDetails={
|
|
381
|
+
inactiveCanNavigateToAccountDetails
|
|
382
|
+
}
|
|
376
383
|
/>
|
|
377
384
|
)}
|
|
378
385
|
</Stack>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { GHOST_GREY } from "../../../../constants/colors";
|
|
3
3
|
import { Box, Cluster } from "../../../atoms/layouts";
|
|
4
|
+
import ButtonWithAction from "../../../atoms/button-with-action";
|
|
4
5
|
import AutopayModalModule from "./AutopayModalModule";
|
|
5
6
|
import RemoveAccountModalModule from "./RemoveAccountModalModule";
|
|
6
7
|
import { noop } from "../../../../util/general";
|
|
7
8
|
|
|
8
9
|
const InactiveControlsModule = ({
|
|
10
|
+
obligations,
|
|
9
11
|
autoPayEnabled,
|
|
10
12
|
autoPaySchedule,
|
|
11
13
|
navigateToSettings,
|
|
@@ -17,16 +19,31 @@ const InactiveControlsModule = ({
|
|
|
17
19
|
obligationAssocID,
|
|
18
20
|
dueDate,
|
|
19
21
|
agencyName,
|
|
22
|
+
config,
|
|
20
23
|
configType,
|
|
21
24
|
actions,
|
|
22
25
|
description,
|
|
23
26
|
subDescription,
|
|
24
27
|
allowedPaymentInstruments,
|
|
25
28
|
disableActions = false,
|
|
26
|
-
showRemoveButton = true
|
|
29
|
+
showRemoveButton = true,
|
|
30
|
+
inactiveCanNavigateToAccountDetails = false
|
|
27
31
|
}) => {
|
|
28
32
|
const [modalOpen, toggleModal] = useState(false);
|
|
29
|
-
const {
|
|
33
|
+
const {
|
|
34
|
+
deleteObligationAssoc,
|
|
35
|
+
setDetailedObligation,
|
|
36
|
+
navigateToDetailedObligation
|
|
37
|
+
} = actions;
|
|
38
|
+
const { obligationSlug } = config;
|
|
39
|
+
const detailsSlug =
|
|
40
|
+
config.type === "ACCOUNT"
|
|
41
|
+
? `/profile/accounts/details/${obligationSlug}`
|
|
42
|
+
: `/profile/properties/details/${obligationSlug}`;
|
|
43
|
+
const handleDetailsClick = () => {
|
|
44
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
45
|
+
navigateToDetailedObligation(detailsSlug);
|
|
46
|
+
};
|
|
30
47
|
const handleRemoveAccount = () => deleteObligationAssoc(obligationAssocID);
|
|
31
48
|
return (
|
|
32
49
|
<Box
|
|
@@ -40,6 +57,24 @@ const InactiveControlsModule = ({
|
|
|
40
57
|
justify={isMobile && autoPayEnabled && "center"}
|
|
41
58
|
align={isMobile && autoPayEnabled && "center"}
|
|
42
59
|
>
|
|
60
|
+
{inactiveCanNavigateToAccountDetails && (
|
|
61
|
+
<Box
|
|
62
|
+
padding={isMobile ? "0 8px 0 0" : "0"}
|
|
63
|
+
extraStyles={isMobile && `flex-grow: 1;`}
|
|
64
|
+
>
|
|
65
|
+
<ButtonWithAction
|
|
66
|
+
variant="tertiary"
|
|
67
|
+
text={
|
|
68
|
+
config.type === "ACCOUNT"
|
|
69
|
+
? "Account Details"
|
|
70
|
+
: "Property Details"
|
|
71
|
+
}
|
|
72
|
+
action={handleDetailsClick}
|
|
73
|
+
dataQa="Account Details"
|
|
74
|
+
extraStyles={isMobile && `flex-grow: 1; width: 100%;`}
|
|
75
|
+
/>
|
|
76
|
+
</Box>
|
|
77
|
+
)}
|
|
43
78
|
{autoPayEnabled && (
|
|
44
79
|
<Box padding="0" extraStyles={`flex-grow: 1;`}>
|
|
45
80
|
<AutopayModalModule
|
|
@@ -28,7 +28,7 @@ const InactiveTitleModule = ({ title, subtitle, autoPayEnabled }) => (
|
|
|
28
28
|
Unable to load account details
|
|
29
29
|
</Detail>
|
|
30
30
|
<Detail variant="extraSmall" as="p" color={BLACK}>
|
|
31
|
-
{`This may mean
|
|
31
|
+
{`This may mean the balance has been paid and was removed from the system, or that there was an error loading it. .${
|
|
32
32
|
autoPayEnabled
|
|
33
33
|
? " You may disable autopay for this account by pressing the 'Turn off Autopay' button."
|
|
34
34
|
: ""
|