diy-template-components 0.2.48 → 0.2.49

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 CHANGED
@@ -1141,7 +1141,7 @@ const NextImageRenderer = ({
1141
1141
  refSetter,
1142
1142
  className
1143
1143
  } = props;
1144
- if (isCustomWebsite && typeof Image !== 'undefined') {
1144
+ if (isCustomWebsite) {
1145
1145
  const classes = nextImageRendererStyles();
1146
1146
  const imageLoader = ({
1147
1147
  src,
@@ -1157,7 +1157,7 @@ const NextImageRenderer = ({
1157
1157
  };
1158
1158
  const NextImage = require('next/image').default;
1159
1159
  return /*#__PURE__*/React.createElement(NextImage, _extends({
1160
- priority: sectionIndex == '0' ? true : false,
1160
+ priority: sectionIndex === 0 ? true : false,
1161
1161
  loader: imageLoader,
1162
1162
  src: src,
1163
1163
  layout: 'fill',