diy-template-components 2.0.77 → 2.0.78

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
@@ -3665,8 +3665,10 @@ const useSectionStyles$6 = createUseStyles(theme => {
3665
3665
 
3666
3666
  const Section$3 = ({
3667
3667
  nodeData,
3668
- sectionIndex
3668
+ sectionIndex,
3669
+ extraProps
3669
3670
  }) => {
3671
+ console.log('extraProps in center', extraProps);
3670
3672
  const {
3671
3673
  layout: {
3672
3674
  containerWidth
@@ -3716,7 +3718,12 @@ const Section$3 = ({
3716
3718
  }
3717
3719
  }) : null, nodeData?.cta?.validations?.isEmptyAllowed && nodeData?.cta?.metadata?.value === '' ? null : /*#__PURE__*/React.createElement("div", {
3718
3720
  className: classes.buttonClass
3719
- }, /*#__PURE__*/React.createElement(Button, {
3721
+ }, nodeData?.cta?.metadata?.default === true ? /*#__PURE__*/React.createElement(Button, {
3722
+ ref: nodeData?.cta?.refSetter,
3723
+ type: nodeData?.cta?.metadata?.type,
3724
+ size: isMobile ? 'small' : 'medium',
3725
+ onClick: extraProps?.courseBuyNow
3726
+ }) : /*#__PURE__*/React.createElement(Button, {
3720
3727
  ref: nodeData?.cta?.refSetter,
3721
3728
  data: nodeData.cta.metadata,
3722
3729
  type: nodeData?.cta?.metadata?.type,