diy-template-components 2.0.96 → 2.0.97
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 +11 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +11 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1623,25 +1623,34 @@ function MobileHeader({
|
|
|
1623
1623
|
React.useLayoutEffect(() => {
|
|
1624
1624
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1625
1625
|
if (body) {
|
|
1626
|
+
console.log("here in nav");
|
|
1626
1627
|
if (sideMenu) {
|
|
1627
1628
|
// body?.setAttribute('style', 'overflow: hidden;');
|
|
1629
|
+
console.log("here in nav before", body, header);
|
|
1628
1630
|
body.style.overflow = 'hidden';
|
|
1631
|
+
console.log("here in nav hidden after", body, header);
|
|
1629
1632
|
} else {
|
|
1630
1633
|
// body?.removeAttribute('style');
|
|
1631
1634
|
body.style.overflow = '';
|
|
1635
|
+
console.log("here in nav hidden else", body, header);
|
|
1632
1636
|
}
|
|
1633
1637
|
if (header?.effectivePrice) {
|
|
1638
|
+
console.log("here in effectivePrice if before", body, header);
|
|
1634
1639
|
body.style.marginBottom = '130px';
|
|
1640
|
+
console.log("here in effectivePrice if after", body, header);
|
|
1635
1641
|
} else {
|
|
1642
|
+
console.log("here in effectivePrice else before", body, header);
|
|
1636
1643
|
body.style.marginBottom = '';
|
|
1644
|
+
console.log("here in effectivePrice else before", body, header);
|
|
1637
1645
|
}
|
|
1638
1646
|
}
|
|
1639
|
-
}, [sideMenu]);
|
|
1647
|
+
}, [sideMenu, header?.effectivePrice]);
|
|
1640
1648
|
React.useEffect(() => {
|
|
1641
1649
|
if (header?.effectivePrice) {
|
|
1650
|
+
console.log("here in use effect");
|
|
1642
1651
|
const body = navEl?.current?.ownerDocument?.body;
|
|
1643
1652
|
if (body) {
|
|
1644
|
-
body
|
|
1653
|
+
body.style.marginBottom = '130px';
|
|
1645
1654
|
}
|
|
1646
1655
|
}
|
|
1647
1656
|
}, []);
|