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.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: {
@@ -3668,6 +3668,7 @@ const Section$3 = ({
3668
3668
  sectionIndex,
3669
3669
  extraProps
3670
3670
  }) => {
3671
+ console.log('extraProps in banner center', extraProps, nodeData?.cta?.metadata?.default);
3671
3672
  const {
3672
3673
  layout: {
3673
3674
  containerWidth
@@ -3687,6 +3688,10 @@ const Section$3 = ({
3687
3688
  hasContent,
3688
3689
  mobileImage: nodeData?.mobileImage?.metadata?.value
3689
3690
  });
3691
+ const handleButton = () => {
3692
+ console.log('buy now clicked');
3693
+ extraProps?.courseBuyNow();
3694
+ };
3690
3695
  return /*#__PURE__*/React.createElement("section", {
3691
3696
  className: classes.bannerCarouselCenterSection
3692
3697
  }, /*#__PURE__*/React.createElement("div", {
@@ -3722,7 +3727,7 @@ const Section$3 = ({
3722
3727
  ref: nodeData?.cta?.refSetter,
3723
3728
  type: nodeData?.cta?.metadata?.type,
3724
3729
  size: isMobile ? 'small' : 'medium',
3725
- onClick: extraProps?.courseBuyNow
3730
+ onClick: handleButton
3726
3731
  }) : /*#__PURE__*/React.createElement(Button, {
3727
3732
  ref: nodeData?.cta?.refSetter,
3728
3733
  data: nodeData.cta.metadata,