revdev-components 0.158.0 → 0.161.0
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/build/index.js
CHANGED
|
@@ -5416,11 +5416,13 @@ var HeaderActionPanel = function (_a) {
|
|
|
5416
5416
|
return React.createElement(React.Fragment, { key: i }, content === null || content === void 0 ? void 0 : content.content);
|
|
5417
5417
|
}
|
|
5418
5418
|
else if (button === null || button === void 0 ? void 0 : button.onClick) {
|
|
5419
|
-
var icon = button.icon, label = button.label, tooltip = button.tooltip;
|
|
5420
|
-
return (React.createElement(
|
|
5419
|
+
var icon = button.icon, label = button.label, tooltip = button.tooltip, confirmText = button.confirmText;
|
|
5420
|
+
return confirmText ? (React.createElement(antd.Popconfirm, { key: i, title: confirmText, onConfirm: button.onClick, okText: "Yes", cancelText: "No" },
|
|
5421
|
+
React.createElement("div", null,
|
|
5422
|
+
React.createElement(IconDivision, { key: i, icon: icon, tooltip: tooltip, className: s$4.button }, label)))) : (React.createElement(IconDivision, { key: i, icon: icon, onClick: button === null || button === void 0 ? void 0 : button.onClick, tooltip: tooltip, className: s$4.button }, label));
|
|
5421
5423
|
}
|
|
5422
5424
|
else if (link === null || link === void 0 ? void 0 : link.href) {
|
|
5423
|
-
var icon =
|
|
5425
|
+
var icon = link.icon, label = link.label, tooltip = link.tooltip;
|
|
5424
5426
|
return (React.createElement(AppLink, { key: i, href: link.href, className: s$4.link },
|
|
5425
5427
|
React.createElement(IconDivision, { icon: icon, tooltip: tooltip }, label)));
|
|
5426
5428
|
}
|