diy-template-components 2.0.73 → 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.es.js
CHANGED
|
@@ -1472,6 +1472,9 @@ function DesktopHeader({
|
|
|
1472
1472
|
return (discount / price * 100).toFixed(2);
|
|
1473
1473
|
};
|
|
1474
1474
|
const OfferDetailsJSX = () => {
|
|
1475
|
+
if (!header?.effectivePrice) {
|
|
1476
|
+
return null;
|
|
1477
|
+
}
|
|
1475
1478
|
let conversions = extraProps?.conversions || 0;
|
|
1476
1479
|
const currentTimestamp = new Date().getTime();
|
|
1477
1480
|
if (checkForShowDiscount(header?.endDate, header?.offerPriceValidFor, header?.discount) && header?.endDate ? checkIfOfferIsValid(header?.endDate) : true) {
|
|
@@ -1566,7 +1569,7 @@ function DesktopHeader({
|
|
|
1566
1569
|
moreContent: moreContentFn(),
|
|
1567
1570
|
isTutorWebsite: isTutorWebsite,
|
|
1568
1571
|
onDownloadAppTriggered: onDownloadAppTriggered
|
|
1569
|
-
}), OfferDetailsJSX())) : /*#__PURE__*/React.createElement("div", {
|
|
1572
|
+
}), isLandingPages ? OfferDetailsJSX() : null)) : /*#__PURE__*/React.createElement("div", {
|
|
1570
1573
|
style: {
|
|
1571
1574
|
paddingTop: '30px'
|
|
1572
1575
|
}
|
|
@@ -1677,6 +1680,9 @@ function MobileHeader({
|
|
|
1677
1680
|
return null;
|
|
1678
1681
|
};
|
|
1679
1682
|
const BottomSheetJSX = () => {
|
|
1683
|
+
if (!header?.effectivePrice) {
|
|
1684
|
+
return null;
|
|
1685
|
+
}
|
|
1680
1686
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1681
1687
|
className: classes.BottomSheetContainer
|
|
1682
1688
|
}, OfferDetailsJSX(), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1836,7 +1842,7 @@ function MobileHeader({
|
|
|
1836
1842
|
style: {
|
|
1837
1843
|
paddingTop: '30px'
|
|
1838
1844
|
}
|
|
1839
|
-
})), /*#__PURE__*/React.createElement(BottomSheetJSX, null));
|
|
1845
|
+
})), isLandingPages ? /*#__PURE__*/React.createElement(BottomSheetJSX, null) : null);
|
|
1840
1846
|
}
|
|
1841
1847
|
|
|
1842
1848
|
function Header({
|
|
@@ -10459,13 +10465,11 @@ const TimerAndCall = ({
|
|
|
10459
10465
|
sectionData,
|
|
10460
10466
|
extraProps = {}
|
|
10461
10467
|
}) => {
|
|
10462
|
-
console.log('extraProps in timer', extraProps);
|
|
10463
10468
|
const {
|
|
10464
10469
|
isMobile,
|
|
10465
10470
|
fullPageData
|
|
10466
10471
|
} = useContext(PageContext);
|
|
10467
10472
|
const [nodeData] = sectionData?.components;
|
|
10468
|
-
console.log('sid sectionData8', sectionData, nodeData, fullPageData);
|
|
10469
10473
|
const classes = useTimerCallPageStyles({
|
|
10470
10474
|
isMobile
|
|
10471
10475
|
});
|