diy-template-components 1.0.32 → 1.0.34

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
@@ -5964,8 +5964,7 @@ const formatCurrency = (countryCode, value, currencySymbol) => {
5964
5964
  function CourseCard({
5965
5965
  card,
5966
5966
  countryCode,
5967
- currencySymbol,
5968
- utmParams
5967
+ currencySymbol
5969
5968
  }) {
5970
5969
  const classes = useCourseStyles();
5971
5970
  const {
@@ -6015,7 +6014,7 @@ function CourseCard({
6015
6014
  className: classes.courseCardStrikePrice
6016
6015
  }, /*#__PURE__*/React__default["default"].createElement("span", null, price), " ", discount > 0 && discount + `% ${offText}`) : null), /*#__PURE__*/React__default["default"].createElement("a", {
6017
6016
  className: classes.coursesAnchorTag,
6018
- href: isEdit ? null : utmParams ? card?.shareableLink + `?flyy_utm_referrer=${utmParams}` : card?.shareableLink
6017
+ href: isEdit ? null : card?.shareableLink
6019
6018
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6020
6019
  className: classes.courseCardBuyBtn
6021
6020
  }, buyNowText)))));
@@ -6045,7 +6044,6 @@ function courses({
6045
6044
  isMobile
6046
6045
  });
6047
6046
  const [nodeData] = sectionData?.components;
6048
- const [utmParams, setUtmParams] = React.useState('');
6049
6047
  const handleApiCall = () => {
6050
6048
  if (baseURLs) {
6051
6049
  getCourseList(baseURLs, hashToken).then(response => {
@@ -6091,11 +6089,6 @@ function courses({
6091
6089
  else {
6092
6090
  handleApiCall();
6093
6091
  }
6094
- const params = new URLSearchParams(window.location.search);
6095
- const utmParams = params.get('flyy_utm_referrer');
6096
- if (utmParams) {
6097
- setUtmParams(utmParams);
6098
- }
6099
6092
  }, []);
6100
6093
  const settings = {
6101
6094
  className: classes.slickContainer,
@@ -6133,8 +6126,7 @@ function courses({
6133
6126
  key: index,
6134
6127
  card: card,
6135
6128
  countryCode: countryCode,
6136
- currencySymbol: currencySymbol,
6137
- utmParams: utmParams
6129
+ currencySymbol: currencySymbol
6138
6130
  })) : fallBackImages?.map((dt, ind) => {
6139
6131
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
6140
6132
  key: ind
@@ -7571,7 +7563,7 @@ const SingleVideoSlide$1 = props => {
7571
7563
  }
7572
7564
  };
7573
7565
  const finalPrice = formatCurrency(countryCode, data?.price, currencySymbol);
7574
- const buyNowText = countryCode === 'KR' ? '이 웨비나 신청하기' : 'BUY NOW';
7566
+ const buyNowText = countryCode === 'KR' ? '수강신청하기' : 'BUY NOW';
7575
7567
  const registerNowText = countryCode === 'KR' ? '웨비나 신청하기' : 'REGISTER NOW';
7576
7568
  const momentLocale = countryCode === 'KR' ? 'ko' : 'in';
7577
7569
  if (countryCode === 'KR') {