diy-template-components 5.14.0 → 5.16.0
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 +9 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +9 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -363,7 +363,7 @@ const useSectionStyles$b = createUseStyles(theme => ({
|
|
|
363
363
|
bottom: 0,
|
|
364
364
|
left: 0,
|
|
365
365
|
width: '100%',
|
|
366
|
-
zIndex: '
|
|
366
|
+
zIndex: '100'
|
|
367
367
|
}
|
|
368
368
|
},
|
|
369
369
|
mobileAppNameClass: {
|
|
@@ -10928,7 +10928,7 @@ const SingleVideoSlide$1 = props => {
|
|
|
10928
10928
|
currencySymbol
|
|
10929
10929
|
} = props;
|
|
10930
10930
|
const showCourseInstallmentData = data?.courseOverviewData;
|
|
10931
|
-
const InstalmentData = isEdit ? data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount : data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments
|
|
10931
|
+
const InstalmentData = isEdit ? data?.courseOverviewData?.installments?.formData?.installments[0].installmentAmount : data?.courseOverviewData?.installments?.formData?.installmentInfo?.installments[0].installmentPrice;
|
|
10932
10932
|
const checkIfOfferIsValid = () => moment__default["default"]().diff(moment__default["default"](props?.data?.endDate || 0)) < 0;
|
|
10933
10933
|
const checkForShowDiscount = () => {
|
|
10934
10934
|
if (props.data.endDate === null || checkIfOfferIsValid()) {
|
|
@@ -13168,6 +13168,13 @@ function StickyCta({
|
|
|
13168
13168
|
window.addEventListener('resize', onResize);
|
|
13169
13169
|
return () => window.removeEventListener('resize', onResize);
|
|
13170
13170
|
}, []);
|
|
13171
|
+
|
|
13172
|
+
// Must run on every path so hook count is stable (Rules of Hooks)
|
|
13173
|
+
React.useEffect(() => {
|
|
13174
|
+
if (p.type !== 'sticky') return;
|
|
13175
|
+
document.body.classList.add('has-sticky-cta');
|
|
13176
|
+
return () => document.body.classList.remove('has-sticky-cta');
|
|
13177
|
+
}, [p.type]);
|
|
13171
13178
|
const editHintBlock = showEditHint ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13172
13179
|
"data-section": "sticky-cta-edit-hint",
|
|
13173
13180
|
style: {
|
|
@@ -13226,10 +13233,6 @@ function StickyCta({
|
|
|
13226
13233
|
// type === 'sticky' – use primary Button (same as other sections) linking to WhatsApp
|
|
13227
13234
|
const barStyle = getStickyBarStyle(breakpoint, theme);
|
|
13228
13235
|
const textStyle = getStickyTextStyle(breakpoint, theme);
|
|
13229
|
-
React.useEffect(() => {
|
|
13230
|
-
document.body.classList.add('has-sticky-cta');
|
|
13231
|
-
return () => document.body.classList.remove('has-sticky-cta');
|
|
13232
|
-
}, []);
|
|
13233
13236
|
const stickyBarPaddingStyles = `
|
|
13234
13237
|
body.has-sticky-cta {
|
|
13235
13238
|
padding-bottom: ${STICKY_BAR_HEIGHT_BY_BREAKPOINT.mobile}px;
|