@undp/carbon-library 1.0.179 → 1.0.180

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -26805,8 +26805,10 @@ var getValidNdcActions = function (programme) {
26805
26805
  var verfiedAction = false;
26806
26806
  if (action.projectMaterial) {
26807
26807
  for (var _i = 0, _b = action.projectMaterial; _i < _b.length; _i++) {
26808
- var document = _b[_i];
26809
- if (document.includes("VERIFICATION_REPORT") && ((_a = action.properties) === null || _a === void 0 ? void 0 : _a.availableCredits)) {
26808
+ var documentDetails = _b[_i];
26809
+ var document_1 = void 0;
26810
+ documentDetails.url ? document_1 = documentDetails.url : document_1 = documentDetails;
26811
+ if (document_1.includes("VERIFICATION_REPORT") && ((_a = action.properties) === null || _a === void 0 ? void 0 : _a.availableCredits)) {
26810
26812
  verfiedAction = true;
26811
26813
  break;
26812
26814
  }
@@ -27460,7 +27462,7 @@ var RejectDocumentationConfirmationModel = function (props) {
27460
27462
  React.createElement(antd.Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
27461
27463
  };
27462
27464
 
27463
- var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%;\n align-items: center;\n justify-content: flex-start;\n gap: 20px; }\n .ndc-action-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
27465
+ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: flex-start;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%;\n align-items: flex-start; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%;\n align-items: center;\n justify-content: flex-start;\n gap: 20px; }\n .ndc-action-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
27464
27466
  styleInject(css_248z$2);
27465
27467
 
27466
27468
  var NdcActionBody = function (props) {