@undp/carbon-library 1.0.75 → 1.0.77

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/cjs/index.js CHANGED
@@ -13539,7 +13539,8 @@ var sectoralScopes = {
13539
13539
  };
13540
13540
  var ProgrammeCreationComponent = function (props) {
13541
13541
  var _a, _b;
13542
- var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, t = props.t;
13542
+ var useUserContext = props.useUserContext, useConnection = props.useConnection, useLocation = props.useLocation, onNavigateToProgrammeView = props.onNavigateToProgrammeView, translator = props.translator;
13543
+ var t = translator.t;
13543
13544
  var state = useLocation().state;
13544
13545
  var formOne = antd.Form.useForm()[0];
13545
13546
  var formTwo = antd.Form.useForm()[0];
@@ -19831,7 +19832,7 @@ var AddNdcActionComponent = function (props) {
19831
19832
  if (response.status === 200 || response.status === 201) {
19832
19833
  antd.message.open({
19833
19834
  type: "success",
19834
- content: "".concat(t("ndcSuccessfullyCreated")),
19835
+ content: "".concat(t("ndcAction:ndcSuccessfullyCreated")),
19835
19836
  duration: 4,
19836
19837
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
19837
19838
  });
@@ -19842,7 +19843,7 @@ var AddNdcActionComponent = function (props) {
19842
19843
  error_1 = _a.sent();
19843
19844
  antd.message.open({
19844
19845
  type: "error",
19845
- content: error_1 && error_1.message ? error_1.message : "".concat("ndcCreationFailed"),
19846
+ content: error_1 && error_1.message ? error_1.message : "".concat("ndcAction:ndcCreationFailed"),
19846
19847
  duration: 4,
19847
19848
  style: { textAlign: "right", marginRight: 15, marginTop: 10 },
19848
19849
  });