diy-template-components 2.0.76 → 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
@@ -1569,7 +1569,7 @@ function DesktopHeader({
1569
1569
  moreContent: moreContentFn(),
1570
1570
  isTutorWebsite: isTutorWebsite,
1571
1571
  onDownloadAppTriggered: onDownloadAppTriggered
1572
- }), isLandingPage ? OfferDetailsJSX() : null)) : /*#__PURE__*/React.createElement("div", {
1572
+ }), OfferDetailsJSX())) : /*#__PURE__*/React.createElement("div", {
1573
1573
  style: {
1574
1574
  paddingTop: '30px'
1575
1575
  }
@@ -1842,7 +1842,7 @@ function MobileHeader({
1842
1842
  style: {
1843
1843
  paddingTop: '30px'
1844
1844
  }
1845
- })), isLandingPage ? /*#__PURE__*/React.createElement(BottomSheetJSX, null) : null);
1845
+ })), /*#__PURE__*/React.createElement(BottomSheetJSX, null));
1846
1846
  }
1847
1847
 
1848
1848
  function Header({
@@ -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,