@knovator/pagecreator 0.0.2 → 0.0.3
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 +7 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -142,9 +142,13 @@ function CarouselWidget(_ref) {
|
|
|
142
142
|
if (!widgetData) return null;
|
|
143
143
|
return jsx(Slider, Object.assign({}, settings ? settings : defaultSettings, {
|
|
144
144
|
children: widgetData.widgetType === 'Image' ? widgetData.tiles.map(function (tile) {
|
|
145
|
-
return
|
|
145
|
+
return jsx("div", {
|
|
146
|
+
children: formatItem(tile)
|
|
147
|
+
});
|
|
146
148
|
}) : widgetData.collectionItems.map(function (item) {
|
|
147
|
-
return
|
|
149
|
+
return jsx("div", {
|
|
150
|
+
children: formatItem(item)
|
|
151
|
+
});
|
|
148
152
|
})
|
|
149
153
|
}));
|
|
150
154
|
}
|
|
@@ -179,7 +183,7 @@ function CollectionItem(_ref) {
|
|
|
179
183
|
children: jsx("p", Object.assign({
|
|
180
184
|
className: "kpc_item-text"
|
|
181
185
|
}, {
|
|
182
|
-
children: name
|
|
186
|
+
children: name || 'Laurem Ipsum'
|
|
183
187
|
}))
|
|
184
188
|
}));
|
|
185
189
|
}
|