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.es.js CHANGED
@@ -1028,7 +1028,10 @@ function OptionList({
1028
1028
  isTutorWebsite,
1029
1029
  isLandingPages
1030
1030
  }) {
1031
- useContext(PageContext);
1031
+ const {
1032
+ isPreview,
1033
+ countryCode
1034
+ } = useContext(PageContext);
1032
1035
  const tabsDataModifier = () => {
1033
1036
  return optionsData?.map(dt => {
1034
1037
  return {
@@ -1045,7 +1048,8 @@ function OptionList({
1045
1048
  const isAndroidDelisted = headerData?.isAndroidDelisted;
1046
1049
  const apkURL = headerData?.apkURL;
1047
1050
  const downloadApkURL = isAndroidDelisted && apkURL ? apkURL : null;
1048
- console.log('sakshat header desktop', headerData);
1051
+ const downloadAppText = countryCode === "KR" ? "앱다운로드" : 'Download App';
1052
+ console.log('sakshat country code options list', countryCode);
1049
1053
  const renderDownloadAppButton = () => {
1050
1054
  return /*#__PURE__*/React.createElement(React.Fragment, null, apkURL && /*#__PURE__*/React.createElement("a", {
1051
1055
  download: true,
@@ -1114,7 +1118,7 @@ function OptionList({
1114
1118
  data: {
1115
1119
  link: downloadApkURL ? downloadApkURL : headerData?.appLink,
1116
1120
  isLink: 1,
1117
- value: 'Download App',
1121
+ value: downloadAppText,
1118
1122
  isExternal: 1
1119
1123
  },
1120
1124
  type: 'primary',
@@ -1316,7 +1320,8 @@ function MobileHeader({
1316
1320
  isLandingPage = false
1317
1321
  }) {
1318
1322
  const {
1319
- isCustomWebsite
1323
+ isCustomWebsite,
1324
+ countryCode
1320
1325
  } = useContext(PageContext);
1321
1326
  const {
1322
1327
  isFixed = true
@@ -1343,7 +1348,9 @@ function MobileHeader({
1343
1348
  let iosUrl = null;
1344
1349
  let androidUrl = null;
1345
1350
  let downloadLink = null;
1351
+ const downloadAppText = countryCode === "KR" ? "앱다운로드" : 'Download App';
1346
1352
  console.log('sakshat header mobile', header);
1353
+ console.log('sakshat country code mobile', countryCode);
1347
1354
  if (isTutorWebsite) {
1348
1355
  if (header?.iosUrl) {
1349
1356
  iosUrl = /*#__PURE__*/React.createElement(Button, {
@@ -1391,7 +1398,7 @@ function MobileHeader({
1391
1398
  data: {
1392
1399
  link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
1393
1400
  isLink: 1,
1394
- value: 'Download App',
1401
+ value: downloadAppText,
1395
1402
  isExternal: 1
1396
1403
  },
1397
1404
  type: 'primary',
@@ -1406,7 +1413,7 @@ function MobileHeader({
1406
1413
  data: {
1407
1414
  link: header?.iosUrl,
1408
1415
  isLink: 1,
1409
- value: header?.downloadAppButtonText || 'Download App',
1416
+ value: header?.downloadAppButtonText || downloadAppText,
1410
1417
  isExternal: 1
1411
1418
  },
1412
1419
  type: 'primary',
@@ -1419,7 +1426,7 @@ function MobileHeader({
1419
1426
  data: {
1420
1427
  link: header?.androidURL,
1421
1428
  isLink: 1,
1422
- value: header?.downloadAppButtonText || 'Download App',
1429
+ value: header?.downloadAppButtonText || downloadAppText,
1423
1430
  isExternal: 1
1424
1431
  },
1425
1432
  type: 'primary',
@@ -1436,7 +1443,7 @@ function MobileHeader({
1436
1443
  data: {
1437
1444
  link: header?.iosUrl ? header?.iosUrl : header?.apkURL,
1438
1445
  isLink: 1,
1439
- value: 'Download App',
1446
+ value: downloadAppText,
1440
1447
  isExternal: 1
1441
1448
  },
1442
1449
  type: 'primary',
@@ -1449,7 +1456,7 @@ function MobileHeader({
1449
1456
  data: {
1450
1457
  link: header?.appLink,
1451
1458
  isLink: 1,
1452
- value: 'Download App',
1459
+ value: downloadAppText,
1453
1460
  isExternal: 1
1454
1461
  },
1455
1462
  type: 'primary',