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.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: '2'
351
+ zIndex: '9999'
352
352
  }
353
353
  },
354
354
  mobileAppNameClass: {
@@ -3687,6 +3687,10 @@ const Section$3 = ({
3687
3687
  hasContent,
3688
3688
  mobileImage: nodeData?.mobileImage?.metadata?.value
3689
3689
  });
3690
+ const handleButton = () => {
3691
+ console.log('buy now clicked');
3692
+ extraProps?.courseBuyNow();
3693
+ };
3690
3694
  return /*#__PURE__*/React.createElement("section", {
3691
3695
  className: classes.bannerCarouselCenterSection
3692
3696
  }, /*#__PURE__*/React.createElement("div", {
@@ -3722,7 +3726,7 @@ const Section$3 = ({
3722
3726
  ref: nodeData?.cta?.refSetter,
3723
3727
  type: nodeData?.cta?.metadata?.type,
3724
3728
  size: isMobile ? 'small' : 'medium',
3725
- onClick: extraProps?.courseBuyNow
3729
+ onClick: handleButton
3726
3730
  }) : /*#__PURE__*/React.createElement(Button, {
3727
3731
  ref: nodeData?.cta?.refSetter,
3728
3732
  data: nodeData.cta.metadata,
@@ -3741,7 +3745,8 @@ const Section$3 = ({
3741
3745
  function BannerCarouselCenter({
3742
3746
  sectionData,
3743
3747
  isCustomWebsite,
3744
- sectionIndex
3748
+ sectionIndex,
3749
+ extraProps
3745
3750
  }) {
3746
3751
  const classes = useSectionStyles$6({
3747
3752
  isCustomWebsite
@@ -3760,7 +3765,8 @@ function BannerCarouselCenter({
3760
3765
  nodeData: node,
3761
3766
  isCustomWebsite: isCustomWebsite,
3762
3767
  key: idx /* or some other unique property */,
3763
- sectionIndex: sectionIndex
3768
+ sectionIndex: sectionIndex,
3769
+ extraProps: extraProps
3764
3770
  }))));
3765
3771
  }
3766
3772