diy-template-components 2.0.74 → 2.0.75
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 +8 -4
- package/build/index.es.js.map +1 -1
- package/build/index.js +8 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1488,6 +1488,9 @@ function DesktopHeader({
|
|
|
1488
1488
|
return (discount / price * 100).toFixed(2);
|
|
1489
1489
|
};
|
|
1490
1490
|
const OfferDetailsJSX = () => {
|
|
1491
|
+
if (!header?.effectivePrice) {
|
|
1492
|
+
return null;
|
|
1493
|
+
}
|
|
1491
1494
|
let conversions = extraProps?.conversions || 0;
|
|
1492
1495
|
const currentTimestamp = new Date().getTime();
|
|
1493
1496
|
if (checkForShowDiscount(header?.endDate, header?.offerPriceValidFor, header?.discount) && header?.endDate ? checkIfOfferIsValid(header?.endDate) : true) {
|
|
@@ -1582,7 +1585,7 @@ function DesktopHeader({
|
|
|
1582
1585
|
moreContent: moreContentFn(),
|
|
1583
1586
|
isTutorWebsite: isTutorWebsite,
|
|
1584
1587
|
onDownloadAppTriggered: onDownloadAppTriggered
|
|
1585
|
-
}), OfferDetailsJSX())) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1588
|
+
}), isLandingPages ? OfferDetailsJSX() : null)) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1586
1589
|
style: {
|
|
1587
1590
|
paddingTop: '30px'
|
|
1588
1591
|
}
|
|
@@ -1693,6 +1696,9 @@ function MobileHeader({
|
|
|
1693
1696
|
return null;
|
|
1694
1697
|
};
|
|
1695
1698
|
const BottomSheetJSX = () => {
|
|
1699
|
+
if (!header?.effectivePrice) {
|
|
1700
|
+
return null;
|
|
1701
|
+
}
|
|
1696
1702
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1697
1703
|
className: classes.BottomSheetContainer
|
|
1698
1704
|
}, OfferDetailsJSX(), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1852,7 +1858,7 @@ function MobileHeader({
|
|
|
1852
1858
|
style: {
|
|
1853
1859
|
paddingTop: '30px'
|
|
1854
1860
|
}
|
|
1855
|
-
})), /*#__PURE__*/React__default["default"].createElement(BottomSheetJSX, null));
|
|
1861
|
+
})), isLandingPages ? /*#__PURE__*/React__default["default"].createElement(BottomSheetJSX, null) : null);
|
|
1856
1862
|
}
|
|
1857
1863
|
|
|
1858
1864
|
function Header({
|
|
@@ -10475,13 +10481,11 @@ const TimerAndCall = ({
|
|
|
10475
10481
|
sectionData,
|
|
10476
10482
|
extraProps = {}
|
|
10477
10483
|
}) => {
|
|
10478
|
-
console.log('extraProps in timer', extraProps);
|
|
10479
10484
|
const {
|
|
10480
10485
|
isMobile,
|
|
10481
10486
|
fullPageData
|
|
10482
10487
|
} = React.useContext(PageContext);
|
|
10483
10488
|
const [nodeData] = sectionData?.components;
|
|
10484
|
-
console.log('sid sectionData8', sectionData, nodeData, fullPageData);
|
|
10485
10489
|
const classes = useTimerCallPageStyles({
|
|
10486
10490
|
isMobile
|
|
10487
10491
|
});
|