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

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
@@ -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"); _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];
@@ -14189,6 +14189,10 @@ var InvestmentCreationComponent = function (props) {
14189
14189
  formOne.setFieldValue(fieldName, null);
14190
14190
  }
14191
14191
  };
14192
+ var onChangeTypeCreation = function (e) {
14193
+ console.log('radio checked', e.target.value);
14194
+ setTypeCreation(e.target.value);
14195
+ };
14192
14196
  return (React.createElement("div", { className: "add-programme-main-container" },
14193
14197
  React.createElement("div", { className: "title-container" },
14194
14198
  React.createElement("div", { className: "main" }, t("programme:addInvestment")),
@@ -14210,11 +14214,8 @@ var InvestmentCreationComponent = function (props) {
14210
14214
  required: true,
14211
14215
  },
14212
14216
  ] },
14213
- React.createElement(antd.Radio.Group, { size: "large", value: "New" }, Object.values(exports.InvestmentCreationType).map(function (k, index) { return (React.createElement("div", { className: "condition-radio-container" },
14214
- React.createElement(antd.Radio.Button, { className: "condition-radio", value: k, onClick: function (e) {
14215
- console.log(e);
14216
- 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" },