@undp/carbon-library 1.0.155 → 1.0.156

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
@@ -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: "operation",
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.Typography.Link, { onClick: function () { return onHandleSave(record); }, style: { marginRight: 8 } }, "Save"),
24628
- React.createElement(antd.Popconfirm, { title: "Sure to cancel?", onConfirm: onEditCancel },
24629
- React.createElement("a", null, "Cancel")))) : (React.createElement(antd.Typography.Link, { disabled: editingKey !== "", onClick: function () { return onEditRow(record); } }, "Edit"));
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 = [