diy-template-components 2.0.96 → 2.0.98
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 +7 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1620,12 +1620,12 @@ function MobileHeader({
|
|
|
1620
1620
|
body.style.marginBottom = '';
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
|
-
}, [sideMenu]);
|
|
1623
|
+
}, [sideMenu, header?.effectivePrice]);
|
|
1624
1624
|
useEffect(() => {
|
|
1625
1625
|
if (header?.effectivePrice) {
|
|
1626
1626
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1627
1627
|
if (body) {
|
|
1628
|
-
body
|
|
1628
|
+
body.style.marginBottom = '130px';
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
}, []);
|
|
@@ -1684,7 +1684,11 @@ function MobileHeader({
|
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
1686
|
const OfferDetailsJSX = () => {
|
|
1687
|
-
console.log('
|
|
1687
|
+
console.log('offer details jsx', header);
|
|
1688
|
+
const body = navEl?.current?.ownerDocument?.body;
|
|
1689
|
+
if (body) {
|
|
1690
|
+
body.style.marginBottom = '130px';
|
|
1691
|
+
}
|
|
1688
1692
|
let conversions = extraProps?.conversions || 0;
|
|
1689
1693
|
const currentTimestamp = new Date().getTime();
|
|
1690
1694
|
if (header?.isOfferActive && header?.endDate && header?.endDate && header?.endDate > currentTimestamp && (header?.offerPriceValidFor ? header.offerPriceValidFor - conversions > 0 : true)) {
|