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.js CHANGED
@@ -1623,31 +1623,22 @@ function MobileHeader({
1623
1623
  React.useLayoutEffect(() => {
1624
1624
  const body = navEl?.current?.ownerDocument?.body;
1625
1625
  if (body) {
1626
- console.log("here in nav");
1627
1626
  if (sideMenu) {
1628
1627
  // body?.setAttribute('style', 'overflow: hidden;');
1629
- console.log("here in nav before", body, header);
1630
1628
  body.style.overflow = 'hidden';
1631
- console.log("here in nav hidden after", body, header);
1632
1629
  } else {
1633
1630
  // body?.removeAttribute('style');
1634
1631
  body.style.overflow = '';
1635
- console.log("here in nav hidden else", body, header);
1636
1632
  }
1637
1633
  if (header?.effectivePrice) {
1638
- console.log("here in effectivePrice if before", body, header);
1639
1634
  body.style.marginBottom = '130px';
1640
- console.log("here in effectivePrice if after", body, header);
1641
1635
  } else {
1642
- console.log("here in effectivePrice else before", body, header);
1643
1636
  body.style.marginBottom = '';
1644
- console.log("here in effectivePrice else before", body, header);
1645
1637
  }
1646
1638
  }
1647
1639
  }, [sideMenu, header?.effectivePrice]);
1648
1640
  React.useEffect(() => {
1649
1641
  if (header?.effectivePrice) {
1650
- console.log("here in use effect");
1651
1642
  const body = navEl?.current?.ownerDocument?.body;
1652
1643
  if (body) {
1653
1644
  body.style.marginBottom = '130px';
@@ -1709,7 +1700,11 @@ function MobileHeader({
1709
1700
  }
1710
1701
  };
1711
1702
  const OfferDetailsJSX = () => {
1712
- console.log('header', header);
1703
+ console.log('offer details jsx', header);
1704
+ const body = navEl?.current?.ownerDocument?.body;
1705
+ if (body) {
1706
+ body.style.marginBottom = '130px';
1707
+ }
1713
1708
  let conversions = extraProps?.conversions || 0;
1714
1709
  const currentTimestamp = new Date().getTime();
1715
1710
  if (header?.isOfferActive && header?.endDate && header?.endDate && header?.endDate > currentTimestamp && (header?.offerPriceValidFor ? header.offerPriceValidFor - conversions > 0 : true)) {