diy-template-components 2.0.79 → 2.0.81

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: {
@@ -3703,6 +3703,10 @@ const Section$3 = ({
3703
3703
  hasContent,
3704
3704
  mobileImage: nodeData?.mobileImage?.metadata?.value
3705
3705
  });
3706
+ const handleButton = () => {
3707
+ console.log('buy now clicked');
3708
+ extraProps?.courseBuyNow();
3709
+ };
3706
3710
  return /*#__PURE__*/React__default["default"].createElement("section", {
3707
3711
  className: classes.bannerCarouselCenterSection
3708
3712
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3738,7 +3742,7 @@ const Section$3 = ({
3738
3742
  ref: nodeData?.cta?.refSetter,
3739
3743
  type: nodeData?.cta?.metadata?.type,
3740
3744
  size: isMobile ? 'small' : 'medium',
3741
- onClick: extraProps?.courseBuyNow
3745
+ onClick: handleButton
3742
3746
  }) : /*#__PURE__*/React__default["default"].createElement(Button, {
3743
3747
  ref: nodeData?.cta?.refSetter,
3744
3748
  data: nodeData.cta.metadata,
@@ -3757,7 +3761,8 @@ const Section$3 = ({
3757
3761
  function BannerCarouselCenter({
3758
3762
  sectionData,
3759
3763
  isCustomWebsite,
3760
- sectionIndex
3764
+ sectionIndex,
3765
+ extraProps
3761
3766
  }) {
3762
3767
  const classes = useSectionStyles$6({
3763
3768
  isCustomWebsite
@@ -3776,7 +3781,8 @@ function BannerCarouselCenter({
3776
3781
  nodeData: node,
3777
3782
  isCustomWebsite: isCustomWebsite,
3778
3783
  key: idx /* or some other unique property */,
3779
- sectionIndex: sectionIndex
3784
+ sectionIndex: sectionIndex,
3785
+ extraProps: extraProps
3780
3786
  }))));
3781
3787
  }
3782
3788