@undp/carbon-library 1.0.136-support-section-changes.4 → 1.0.136-support-section-changes.6

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -14017,7 +14017,7 @@ var InvestmentCreationComponent = function (props) {
14017
14017
  var formTwo = antd.Form.useForm()[0];
14018
14018
  var post = useConnection().post;
14019
14019
  var _b = React.useState(false), loading = _b[0], setLoading = _b[1];
14020
- var _c = React.useState("New"), typeCreation = _c[0]; _c[1];
14020
+ var _c = React.useState("New"), typeCreation = _c[0], setTypeCreation = _c[1];
14021
14021
  var _d = React.useState(false), loadingList = _d[0], setLoadingList = _d[1];
14022
14022
  var _e = React.useState(0), current = _e[0], setCurrent = _e[1];
14023
14023
  var _f = React.useState(0), currentPercTotal = _f[0], setCurrentPercTotal = _f[1];
@@ -14089,7 +14089,6 @@ var InvestmentCreationComponent = function (props) {
14089
14089
  });
14090
14090
  }); };
14091
14091
  React.useEffect(function () {
14092
- console.log("state ---------------- > ", state);
14093
14092
  if (!state) {
14094
14093
  onNavigateToProgrammeManagementView();
14095
14094
  return;
@@ -14190,6 +14189,10 @@ var InvestmentCreationComponent = function (props) {
14190
14189
  formOne.setFieldValue(fieldName, null);
14191
14190
  }
14192
14191
  };
14192
+ var onChangeTypeCreation = function (e) {
14193
+ console.log('radio checked', e.target.value);
14194
+ setTypeCreation(e.target.value);
14195
+ };
14193
14196
  return (React.createElement("div", { className: "add-programme-main-container" },
14194
14197
  React.createElement("div", { className: "title-container" },
14195
14198
  React.createElement("div", { className: "main" }, t("programme:addInvestment")),
@@ -14211,10 +14214,8 @@ var InvestmentCreationComponent = function (props) {
14211
14214
  required: true,
14212
14215
  },
14213
14216
  ] },
14214
- React.createElement(antd.Radio.Group, { size: "large", value: typeCreation }, Object.values(exports.InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
14215
- React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
14216
- return deselectOnClick(e, "type");
14217
- } }, t("programme:" + k)))); }))))),
14217
+ React.createElement(antd.Radio.Group, { size: "large", defaultValue: typeCreation }, Object.values(exports.InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
14218
+ React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onChange: onChangeTypeCreation }, t("programme:" + k)))); }))))),
14218
14219
  React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
14219
14220
  React.createElement(antd.Col, { xl: 12, md: 24 },
14220
14221
  React.createElement("div", { className: "details-part-one" },