diy-template-components 2.0.78 → 2.0.80
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 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +8 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -348,7 +348,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
348
348
|
bottom: 0,
|
|
349
349
|
left: 0,
|
|
350
350
|
width: '100%',
|
|
351
|
-
zIndex: '
|
|
351
|
+
zIndex: '9999'
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
354
|
mobileAppNameClass: {
|
|
@@ -3668,7 +3668,7 @@ const Section$3 = ({
|
|
|
3668
3668
|
sectionIndex,
|
|
3669
3669
|
extraProps
|
|
3670
3670
|
}) => {
|
|
3671
|
-
console.log('extraProps in center', extraProps);
|
|
3671
|
+
console.log('extraProps in banner center', extraProps, nodeData?.cta?.metadata?.default);
|
|
3672
3672
|
const {
|
|
3673
3673
|
layout: {
|
|
3674
3674
|
containerWidth
|
|
@@ -3688,6 +3688,10 @@ const Section$3 = ({
|
|
|
3688
3688
|
hasContent,
|
|
3689
3689
|
mobileImage: nodeData?.mobileImage?.metadata?.value
|
|
3690
3690
|
});
|
|
3691
|
+
const handleButton = () => {
|
|
3692
|
+
console.log('buy now clicked');
|
|
3693
|
+
extraProps?.courseBuyNow();
|
|
3694
|
+
};
|
|
3691
3695
|
return /*#__PURE__*/React.createElement("section", {
|
|
3692
3696
|
className: classes.bannerCarouselCenterSection
|
|
3693
3697
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3719,10 +3723,11 @@ const Section$3 = ({
|
|
|
3719
3723
|
}) : null, nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement("div", {
|
|
3720
3724
|
className: classes.buttonClass
|
|
3721
3725
|
}, nodeData?.cta?.metadata?.default === true ? /*#__PURE__*/React.createElement(Button, {
|
|
3726
|
+
data: nodeData.cta.metadata,
|
|
3722
3727
|
ref: nodeData?.cta?.refSetter,
|
|
3723
3728
|
type: nodeData?.cta?.metadata?.type,
|
|
3724
3729
|
size: isMobile ? 'small' : 'medium',
|
|
3725
|
-
onClick:
|
|
3730
|
+
onClick: handleButton
|
|
3726
3731
|
}) : /*#__PURE__*/React.createElement(Button, {
|
|
3727
3732
|
ref: nodeData?.cta?.refSetter,
|
|
3728
3733
|
data: nodeData.cta.metadata,
|