diy-template-components 2.0.97 → 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 +5 -10
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -10
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1607,31 +1607,22 @@ function MobileHeader({
|
|
|
1607
1607
|
useLayoutEffect(() => {
|
|
1608
1608
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1609
1609
|
if (body) {
|
|
1610
|
-
console.log("here in nav");
|
|
1611
1610
|
if (sideMenu) {
|
|
1612
1611
|
// body?.setAttribute('style', 'overflow: hidden;');
|
|
1613
|
-
console.log("here in nav before", body, header);
|
|
1614
1612
|
body.style.overflow = 'hidden';
|
|
1615
|
-
console.log("here in nav hidden after", body, header);
|
|
1616
1613
|
} else {
|
|
1617
1614
|
// body?.removeAttribute('style');
|
|
1618
1615
|
body.style.overflow = '';
|
|
1619
|
-
console.log("here in nav hidden else", body, header);
|
|
1620
1616
|
}
|
|
1621
1617
|
if (header?.effectivePrice) {
|
|
1622
|
-
console.log("here in effectivePrice if before", body, header);
|
|
1623
1618
|
body.style.marginBottom = '130px';
|
|
1624
|
-
console.log("here in effectivePrice if after", body, header);
|
|
1625
1619
|
} else {
|
|
1626
|
-
console.log("here in effectivePrice else before", body, header);
|
|
1627
1620
|
body.style.marginBottom = '';
|
|
1628
|
-
console.log("here in effectivePrice else before", body, header);
|
|
1629
1621
|
}
|
|
1630
1622
|
}
|
|
1631
1623
|
}, [sideMenu, header?.effectivePrice]);
|
|
1632
1624
|
useEffect(() => {
|
|
1633
1625
|
if (header?.effectivePrice) {
|
|
1634
|
-
console.log("here in use effect");
|
|
1635
1626
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1636
1627
|
if (body) {
|
|
1637
1628
|
body.style.marginBottom = '130px';
|
|
@@ -1693,7 +1684,11 @@ function MobileHeader({
|
|
|
1693
1684
|
}
|
|
1694
1685
|
};
|
|
1695
1686
|
const OfferDetailsJSX = () => {
|
|
1696
|
-
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
|
+
}
|
|
1697
1692
|
let conversions = extraProps?.conversions || 0;
|
|
1698
1693
|
const currentTimestamp = new Date().getTime();
|
|
1699
1694
|
if (header?.isOfferActive && header?.endDate && header?.endDate && header?.endDate > currentTimestamp && (header?.offerPriceValidFor ? header.offerPriceValidFor - conversions > 0 : true)) {
|