@undp/carbon-library 1.0.302-CARBON-368.0 → 1.0.302-CARBON-369.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6699,7 +6699,7 @@ var AddNewCompanyComponent = function (props) {
6699
6699
  String(value).trim() === undefined ||
6700
6700
  value === null ||
6701
6701
  value === undefined) {
6702
- throw new Error("".concat(t("addCompany:nationalSopValue"), " ").concat(t("isRequired")));
6702
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6703
6703
  }
6704
6704
  return [2 /*return*/];
6705
6705
  });
@@ -7876,15 +7876,6 @@ var ProgrammeManagementComponent = function (props) {
7876
7876
  setMinistryLevelFilter(false);
7877
7877
  }
7878
7878
  }
7879
- else if ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.CERTIFIER) {
7880
- setDataFilter(v.target.checked
7881
- ? {
7882
- key: "certifierId",
7883
- operation: "ANY",
7884
- value: userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyId,
7885
- }
7886
- : undefined);
7887
- }
7888
7879
  else {
7889
7880
  setDataFilter(v.target.checked
7890
7881
  ? {
@@ -24230,7 +24221,7 @@ var CreditTransferComponent = function (props) {
24230
24221
  else {
24231
24222
  setMinistryLevelFilter(false);
24232
24223
  }
24233
- } }, t("view:ministryLevel")))),
24224
+ } }, t("ndcAction:ministryLevel")))),
24234
24225
  React.createElement("div", { className: "search-bar" },
24235
24226
  React.createElement(Search, { onPressEnter: onSearch, placeholder: "Search", allowClear: true, onChange: function (e) {
24236
24227
  return e.target.value === ""
@@ -28775,9 +28766,7 @@ var InvestmentBody = function (props) {
28775
28766
  React.createElement("div", { className: "invester" },
28776
28767
  React.createElement("div", { className: "name-and-progress" },
28777
28768
  React.createElement("div", { className: "name" }, investmentData === null || investmentData === void 0 ? void 0 : investmentData.invester),
28778
- React.createElement("div", { className: "progress" },
28779
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
28780
- (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
28769
+ React.createElement("div", { className: "progress" }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.status) === exports.InvestmentStatus.APPROVED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })))),
28781
28770
  React.createElement("div", { className: "time" }, moment(parseInt(investmentData === null || investmentData === void 0 ? void 0 : investmentData.createdAt)).format("DD MMMM YYYY @ HH:mm"))),
28782
28771
  React.createElement("div", { className: "amount" },
28783
28772
  "$",
@@ -29247,26 +29236,8 @@ var ProgrammeRetireForm = function (props) {
29247
29236
  var ProgrammeRevokeForm = function (props) {
29248
29237
  var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, showCertifiers = props.showCertifiers, translator = props.translator;
29249
29238
  var t = translator.t;
29250
- var form = antd.Form.useForm()[0];
29251
29239
  var _a = React.useState(undefined), popupError = _a[0], setPopupError = _a[1];
29252
29240
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
29253
- var _c = React.useState(false), remarks = _c[0], setRemarks = _c[1];
29254
- var onRemarkValues = function () { return __awaiter(void 0, void 0, void 0, function () {
29255
- var comment;
29256
- return __generator(this, function (_a) {
29257
- comment = form.getFieldValue("comment");
29258
- if (comment === undefined || comment === "") {
29259
- setRemarks(false);
29260
- }
29261
- else {
29262
- setRemarks(true);
29263
- }
29264
- return [2 /*return*/];
29265
- });
29266
- }); };
29267
- React.useEffect(function () {
29268
- onRemarkValues();
29269
- });
29270
29241
  return (React.createElement("div", { className: "transfer-form" },
29271
29242
  React.createElement(antd.Row, null,
29272
29243
  React.createElement(antd.Col, { span: 24, className: "sub-text" }, subText)),
@@ -29274,7 +29245,7 @@ var ProgrammeRevokeForm = function (props) {
29274
29245
  certifierId: programme.certifierId && programme.certifierId.length === 1
29275
29246
  ? Number(programme.certifierId[0])
29276
29247
  : undefined,
29277
- }, onChange: function () { return setPopupError(undefined); }, onValuesChange: onRemarkValues, form: form, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29248
+ }, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
29278
29249
  var res;
29279
29250
  return __generator(this, function (_a) {
29280
29251
  switch (_a.label) {
@@ -29313,7 +29284,7 @@ var ProgrammeRevokeForm = function (props) {
29313
29284
  popupError ? (React.createElement(antd.Alert, { className: "error", message: popupError, type: "error", showIcon: true })) : (""),
29314
29285
  React.createElement(antd.Form.Item, { className: "footer" },
29315
29286
  React.createElement(antd.Button, { htmlType: "button", onClick: onCancel }, t("view:cancel")),
29316
- React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading, disabled: !remarks }, actionBtnText)))));
29287
+ React.createElement(antd.Button, { className: "mg-left-2", type: "primary", htmlType: "submit", loading: loading }, actionBtnText)))));
29317
29288
  };
29318
29289
 
29319
29290
  var ProgrammeTransferForm = function (props) {