@undp/carbon-library 1.0.134-CARBON-326.0 → 1.0.134-CARBON-326.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -18718,18 +18718,12 @@ var NdcActionViewComponent = function (props) {
18718
18718
  });
18719
18719
  }); };
18720
18720
  var getProjectReportActions = function (reportData) {
18721
- var versionfull = (reportData === null || reportData === void 0 ? void 0 : reportData.url).split("_")[(reportData === null || reportData === void 0 ? void 0 : reportData.url).split("_").length - 1];
18722
- var version = versionfull ? versionfull.split(".")[0] : "1";
18723
- var Docversion = version.startsWith("V") ? version : "V1";
18724
18721
  return (React.createElement(antd.Row, null,
18725
18722
  React.createElement("div", { className: "icon" },
18726
18723
  (reportData === null || reportData === void 0 ? void 0 : reportData.status) === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
18727
18724
  (reportData === null || reportData === void 0 ? void 0 : reportData.status) === exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
18728
18725
  React.createElement("div", { className: "link mg-left-1" }, (reportData === null || reportData === void 0 ? void 0 : reportData.url) && linkDocVisible(reportData === null || reportData === void 0 ? void 0 : reportData.status) && (React.createElement("a", { href: reportData === null || reportData === void 0 ? void 0 : reportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
18729
- React.createElement(icons.LinkOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
18730
- (reportData === null || reportData === void 0 ? void 0 : reportData.url) !== "" && (React.createElement("div", { className: "time" },
18731
- moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
18732
- " ~ " + Docversion))));
18726
+ React.createElement(icons.LinkOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))));
18733
18727
  };
18734
18728
  var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
18735
18729
  var reportDetails, response, exception_1;