diy-template-components 2.0.79 → 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.js CHANGED
@@ -364,7 +364,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
364
364
  bottom: 0,
365
365
  left: 0,
366
366
  width: '100%',
367
- zIndex: '2'
367
+ zIndex: '9999'
368
368
  }
369
369
  },
370
370
  mobileAppNameClass: {
@@ -3684,6 +3684,7 @@ const Section$3 = ({
3684
3684
  sectionIndex,
3685
3685
  extraProps
3686
3686
  }) => {
3687
+ console.log('extraProps in banner center', extraProps, nodeData?.cta?.metadata?.default);
3687
3688
  const {
3688
3689
  layout: {
3689
3690
  containerWidth
@@ -3703,6 +3704,10 @@ const Section$3 = ({
3703
3704
  hasContent,
3704
3705
  mobileImage: nodeData?.mobileImage?.metadata?.value
3705
3706
  });
3707
+ const handleButton = () => {
3708
+ console.log('buy now clicked');
3709
+ extraProps?.courseBuyNow();
3710
+ };
3706
3711
  return /*#__PURE__*/React__default["default"].createElement("section", {
3707
3712
  className: classes.bannerCarouselCenterSection
3708
3713
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3738,7 +3743,7 @@ const Section$3 = ({
3738
3743
  ref: nodeData?.cta?.refSetter,
3739
3744
  type: nodeData?.cta?.metadata?.type,
3740
3745
  size: isMobile ? 'small' : 'medium',
3741
- onClick: extraProps?.courseBuyNow
3746
+ onClick: handleButton
3742
3747
  }) : /*#__PURE__*/React__default["default"].createElement(Button, {
3743
3748
  ref: nodeData?.cta?.refSetter,
3744
3749
  data: nodeData.cta.metadata,