@undp/carbon-library 1.0.152-CARBON-343.1 → 1.0.152-CARBON-343.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +9 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -24619,14 +24619,18 @@ var NdcDetailsComponent = function (props) {
|
|
24619
24619
|
React.createElement("span", null, record.ministry))) : (React.createElement("input", { className: "ant-input", disabled: true, type: "text" })))); },
|
24620
24620
|
},
|
24621
24621
|
{
|
24622
|
-
title: "
|
24622
|
+
title: "Action",
|
24623
24623
|
dataIndex: "operation",
|
24624
24624
|
render: function (_, record) {
|
24625
24625
|
var editable = isEditing(record);
|
24626
24626
|
return editable ? (React.createElement("span", null,
|
24627
|
-
React.createElement(antd.
|
24628
|
-
|
24629
|
-
|
24627
|
+
React.createElement(antd.Tooltip, { title: "Save" },
|
24628
|
+
React.createElement(antd.Typography.Link, { onClick: function () { return onHandleSave(record); }, style: { marginRight: 20 } },
|
24629
|
+
React.createElement(icons.SaveOutlined, null))),
|
24630
|
+
React.createElement(antd.Tooltip, { title: "Cancel" },
|
24631
|
+
React.createElement(antd.Typography.Link, { onClick: onEditCancel, style: { marginRight: 8 } },
|
24632
|
+
React.createElement(icons.ExclamationCircleOutlined, null))))) : (React.createElement(antd.Typography.Link, { disabled: editingKey !== "", onClick: function () { return onEditRow(record); } },
|
24633
|
+
React.createElement(icons.EditOutlined, null)));
|
24630
24634
|
},
|
24631
24635
|
},
|
24632
24636
|
];
|
@@ -24731,6 +24735,7 @@ var NdcDetailsComponent = function (props) {
|
|
24731
24735
|
}
|
24732
24736
|
var onTabChange = function (key) {
|
24733
24737
|
setSelectedTab(key);
|
24738
|
+
setEditingKey("");
|
24734
24739
|
};
|
24735
24740
|
React.useEffect(function () {
|
24736
24741
|
var defaultNdcDetails = [
|