diy-template-components 1.0.21 → 1.0.22

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
@@ -1044,7 +1044,10 @@ function OptionList({
1044
1044
  isTutorWebsite,
1045
1045
  isLandingPages
1046
1046
  }) {
1047
- React.useContext(PageContext);
1047
+ const {
1048
+ isPreview,
1049
+ countryCode
1050
+ } = React.useContext(PageContext);
1048
1051
  const tabsDataModifier = () => {
1049
1052
  return optionsData?.map(dt => {
1050
1053
  return {
@@ -1061,7 +1064,8 @@ function OptionList({
1061
1064
  const isAndroidDelisted = headerData?.isAndroidDelisted;
1062
1065
  const apkURL = headerData?.apkURL;
1063
1066
  const downloadApkURL = isAndroidDelisted && apkURL ? apkURL : null;
1064
- console.log('sakshat header desktop', headerData);
1067
+ const downloadAppText = countryCode === "KR" ? "앱다운로드" : 'Download App';
1068
+ console.log('sakshat country code options list', countryCode);
1065
1069
  const renderDownloadAppButton = () => {
1066
1070
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, apkURL && /*#__PURE__*/React__default["default"].createElement("a", {
1067
1071
  download: true,
@@ -1130,7 +1134,7 @@ function OptionList({
1130
1134
  data: {
1131
1135
  link: downloadApkURL ? downloadApkURL : headerData?.appLink,
1132
1136
  isLink: 1,
1133
- value: 'Download App',
1137
+ value: downloadAppText,
1134
1138
  isExternal: 1
1135
1139
  },
1136
1140
  type: 'primary',
@@ -1332,7 +1336,8 @@ function MobileHeader({
1332
1336
  isLandingPage = false
1333
1337
  }) {
1334
1338
  const {
1335
- isCustomWebsite
1339
+ isCustomWebsite,
1340
+ countryCode
1336
1341
  } = React.useContext(PageContext);
1337
1342
  const {
1338
1343
  isFixed = true
@@ -1359,7 +1364,9 @@ function MobileHeader({
1359
1364
  let iosUrl = null;
1360
1365
  let androidUrl = null;
1361
1366
  let downloadLink = null;
1367
+ const downloadAppText = countryCode === "KR" ? "앱다운로드" : 'Download App';
1362
1368
  console.log('sakshat header mobile', header);
1369
+ console.log('sakshat country code mobile', countryCode);
1363
1370
  if (isTutorWebsite) {
1364
1371
  if (header?.iosUrl) {
1365
1372
  iosUrl = /*#__PURE__*/React__default["default"].createElement(Button, {
@@ -1407,7 +1414,7 @@ function MobileHeader({
1407
1414
  data: {
1408
1415
  link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
1409
1416
  isLink: 1,
1410
- value: 'Download App',
1417
+ value: downloadAppText,
1411
1418
  isExternal: 1
1412
1419
  },
1413
1420
  type: 'primary',
@@ -1422,7 +1429,7 @@ function MobileHeader({
1422
1429
  data: {
1423
1430
  link: header?.iosUrl,
1424
1431
  isLink: 1,
1425
- value: header?.downloadAppButtonText || 'Download App',
1432
+ value: header?.downloadAppButtonText || downloadAppText,
1426
1433
  isExternal: 1
1427
1434
  },
1428
1435
  type: 'primary',
@@ -1435,7 +1442,7 @@ function MobileHeader({
1435
1442
  data: {
1436
1443
  link: header?.androidURL,
1437
1444
  isLink: 1,
1438
- value: header?.downloadAppButtonText || 'Download App',
1445
+ value: header?.downloadAppButtonText || downloadAppText,
1439
1446
  isExternal: 1
1440
1447
  },
1441
1448
  type: 'primary',
@@ -1452,7 +1459,7 @@ function MobileHeader({
1452
1459
  data: {
1453
1460
  link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
1454
1461
  isLink: 1,
1455
- value: 'Download App',
1462
+ value: downloadAppText,
1456
1463
  isExternal: 1
1457
1464
  },
1458
1465
  type: 'primary',
@@ -1465,7 +1472,7 @@ function MobileHeader({
1465
1472
  data: {
1466
1473
  link: header?.appLink,
1467
1474
  isLink: 1,
1468
- value: 'Download App',
1475
+ value: downloadAppText,
1469
1476
  isExternal: 1
1470
1477
  },
1471
1478
  type: 'primary',