diy-template-components 1.0.44 → 1.0.45
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.es.js +3 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -3156,6 +3156,8 @@ const Section$3 = ({
|
|
|
3156
3156
|
isCustomWebsite,
|
|
3157
3157
|
hasContent
|
|
3158
3158
|
});
|
|
3159
|
+
const mobileImageSrc = isMobile && nodeData?.mobileImage?.metadata?.value;
|
|
3160
|
+
const desktopImageSrc = nodeData?.image?.metadata?.value;
|
|
3159
3161
|
return /*#__PURE__*/React.createElement("section", {
|
|
3160
3162
|
className: classes.bannerCarouselCenterSection
|
|
3161
3163
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3196,7 +3198,7 @@ const Section$3 = ({
|
|
|
3196
3198
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3197
3199
|
className: hasContent && classes?.overlay
|
|
3198
3200
|
}), /*#__PURE__*/React.createElement(NextImageRenderer, {
|
|
3199
|
-
src:
|
|
3201
|
+
src: mobileImageSrc ? mobileImageSrc : desktopImageSrc,
|
|
3200
3202
|
className: classes?.centerBgImage,
|
|
3201
3203
|
sectionIndex: sectionIndex
|
|
3202
3204
|
}))));
|