@credithub/harlan-components 1.75.0 → 1.75.1
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.
|
@@ -208,10 +208,11 @@ var Liminar = function () {
|
|
|
208
208
|
return [4 /*yield*/, fetchLiminarProtestosDoPassado()];
|
|
209
209
|
case 1:
|
|
210
210
|
_a = _e.sent(), possuiIndiciosDeLiminarProtestosDoPassado = _a.possuiIndiciosDeLiminarProtestosDoPassado, protestosIds = _a.protestosDoPassadoIds;
|
|
211
|
-
console.log(
|
|
211
|
+
console.log('possuiIndiciosDeLiminarProtestosDoPassado', possuiIndiciosDeLiminarProtestosDoPassado);
|
|
212
212
|
if (possuiIndiciosDeLiminarProtestosDoPassado) {
|
|
213
213
|
origensDetectadas.push('Liminar no Cenprot');
|
|
214
|
-
indiciosDeLiminarProtestosDoPassado =
|
|
214
|
+
indiciosDeLiminarProtestosDoPassado =
|
|
215
|
+
possuiIndiciosDeLiminarProtestosDoPassado;
|
|
215
216
|
protestosDoPassadoIds = protestosIds.join(',');
|
|
216
217
|
}
|
|
217
218
|
setIsLoadingLiminarProtestosDoPassado(false);
|
|
@@ -289,7 +290,7 @@ var Liminar = function () {
|
|
|
289
290
|
setEmailModalMessage("Falha ao enviar e-mail: ".concat(emailError.message));
|
|
290
291
|
}
|
|
291
292
|
else {
|
|
292
|
-
setEmailModalMessage('
|
|
293
|
+
setEmailModalMessage('Você deve ter recebido um e-mail nosso com os detalhes que encontramos sobre esse indício.');
|
|
293
294
|
}
|
|
294
295
|
setIsEmailModalOpen(true);
|
|
295
296
|
return [2 /*return*/];
|
|
@@ -327,14 +328,15 @@ var Liminar = function () {
|
|
|
327
328
|
description: (React.createElement(React.Fragment, null,
|
|
328
329
|
React.createElement(StatusMessage, { type: variant }, msg),
|
|
329
330
|
origensDetectadas.map(function (o) { return (React.createElement(StatusMessage, { key: o, type: variant }, o)); }))),
|
|
330
|
-
actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, ((_c = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _c === void 0 ? void 0 : _c.indiciosDeLiminarProtestosDoPassado) &&
|
|
331
|
+
actions: (React.createElement("div", { style: { textAlign: 'center' }, onClick: function (e) { return e.stopPropagation(); } }, ((_c = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _c === void 0 ? void 0 : _c.indiciosDeLiminarProtestosDoPassado) &&
|
|
332
|
+
((_d = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _d === void 0 ? void 0 : _d.protestosDoPassadoIds) && (React.createElement(Button, { onClick: handleSendEmailIndicios }, "Enviar Ind\u00EDcios por Email"))))
|
|
331
333
|
};
|
|
332
334
|
}
|
|
333
335
|
: undefined }),
|
|
334
336
|
React.createElement(Modal, { isOpen: isEmailModalOpen, onClose: function () {
|
|
335
337
|
setIsEmailModalOpen(false);
|
|
336
338
|
setEmailModalMessage('');
|
|
337
|
-
}, title: "
|
|
339
|
+
}, title: "Detalhes enviados por e-mail" },
|
|
338
340
|
React.createElement("p", null, emailModalMessage),
|
|
339
341
|
React.createElement("div", { style: { textAlign: 'center', marginTop: '16px' } },
|
|
340
342
|
React.createElement(Button, { onClick: function () {
|