@knovator/pagecreator 0.9.3 → 0.9.4
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -557,7 +557,7 @@ function TabWidget(_ref) {
|
|
|
557
557
|
}, /*#__PURE__*/React.createElement(TabList, null, widgetData.tabs.map(function (tab, index) {
|
|
558
558
|
return /*#__PURE__*/React.createElement(Tab, {
|
|
559
559
|
key: index
|
|
560
|
-
}, formatTabTitle(tab.
|
|
560
|
+
}, formatTabTitle(tab.names || tab.name, tab.collectionItems, activeTab === index));
|
|
561
561
|
})), widgetData.tabs.map(function (tab, index) {
|
|
562
562
|
return /*#__PURE__*/React.createElement(TabPanel, {
|
|
563
563
|
key: index
|
|
@@ -624,10 +624,10 @@ function Widget(_ref) {
|
|
|
624
624
|
style: {
|
|
625
625
|
backgroundColor: widgetData.backgroundColor
|
|
626
626
|
}
|
|
627
|
-
}, hideTitle === true ? null : typeof formatHeader === 'function' ? formatHeader(widgetData.widgetTitle, widgetData) : /*#__PURE__*/React.createElement("h2", {
|
|
627
|
+
}, hideTitle === true ? null : typeof formatHeader === 'function' ? formatHeader(widgetData.widgetTitles || widgetData.widgetTitle, widgetData) : /*#__PURE__*/React.createElement("h2", {
|
|
628
628
|
className: "kpc_widget-title",
|
|
629
629
|
dangerouslySetInnerHTML: {
|
|
630
|
-
__html: widgetData.widgetTitle
|
|
630
|
+
__html: widgetData.widgetTitles ? JSON.stringify(widgetData.widgetTitles) : widgetData.widgetTitle
|
|
631
631
|
}
|
|
632
632
|
}), /*#__PURE__*/React.createElement("div", {
|
|
633
633
|
className: "kpc_widget-body"
|