diy-template-components 2.0.9 → 2.0.10
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 +7 -14
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -14
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1071,9 +1071,7 @@ function OptionList({
|
|
|
1071
1071
|
};
|
|
1072
1072
|
const tabData = tabsDataModifier();
|
|
1073
1073
|
const classes = useSectionStyles$a();
|
|
1074
|
-
|
|
1075
|
-
// console.log(headerData, 'sakshat header options');
|
|
1076
|
-
|
|
1074
|
+
console.log(headerData, 'sakshat header options');
|
|
1077
1075
|
const isAndroidDelisted = headerData?.isAndroidDelisted;
|
|
1078
1076
|
const apkURL = headerData?.apkURL;
|
|
1079
1077
|
const downloadApkURL = isAndroidDelisted && apkURL ? apkURL : null;
|
|
@@ -1120,9 +1118,8 @@ function OptionList({
|
|
|
1120
1118
|
})) : null);
|
|
1121
1119
|
};
|
|
1122
1120
|
const iosLink = isTutorWebsite ? headerData?.iosDownloadLink : headerData?.iosUrl;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1121
|
+
const androidLink = isTutorWebsite ? headerData?.androidDownloadLink : headerData?.appLink;
|
|
1122
|
+
console.log(iosLink, 'sakshat ios link');
|
|
1126
1123
|
return /*#__PURE__*/React.createElement("div", {
|
|
1127
1124
|
className: classes.listSection
|
|
1128
1125
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1146,9 +1143,9 @@ function OptionList({
|
|
|
1146
1143
|
list: moreContent,
|
|
1147
1144
|
label: 'More',
|
|
1148
1145
|
icon: arrowDown
|
|
1149
|
-
}) : null, isTutorWebsite && /*#__PURE__*/React.createElement(React.Fragment, null, isAndroidDelisted && !headerData.navs ? /*#__PURE__*/React.createElement(React.Fragment, null, renderDownloadAppButton()) : /*#__PURE__*/React.createElement(React.Fragment, null, !headerData?.navs && renderAppDownloadLinks())), isMobile ? downloadApkURL?.length > 0 ||
|
|
1146
|
+
}) : null, isTutorWebsite && /*#__PURE__*/React.createElement(React.Fragment, null, isAndroidDelisted && !headerData.navs ? /*#__PURE__*/React.createElement(React.Fragment, null, renderDownloadAppButton()) : /*#__PURE__*/React.createElement(React.Fragment, null, !headerData?.navs && renderAppDownloadLinks())), isMobile ? downloadApkURL?.length > 0 || androidLink?.length > 0 || iosLink?.length > 0 ? /*#__PURE__*/React.createElement(Button, {
|
|
1150
1147
|
data: {
|
|
1151
|
-
link: isAndroidDelisted ? getAppDownloadLink(downloadApkURL, iosLink) : getAppDownloadLink(
|
|
1148
|
+
link: isAndroidDelisted ? getAppDownloadLink(downloadApkURL, iosLink) : getAppDownloadLink(androidLink, iosLink),
|
|
1152
1149
|
isLink: 1,
|
|
1153
1150
|
value: downloadAppText,
|
|
1154
1151
|
isExternal: 1
|
|
@@ -1306,9 +1303,7 @@ function DesktopHeader({
|
|
|
1306
1303
|
}
|
|
1307
1304
|
return moreContent;
|
|
1308
1305
|
};
|
|
1309
|
-
|
|
1310
|
-
// console.log(header, 'sakshat header desktop');
|
|
1311
|
-
|
|
1306
|
+
console.log(header, 'sakshat header desktop');
|
|
1312
1307
|
return /*#__PURE__*/React.createElement("nav", {
|
|
1313
1308
|
className: classes.section
|
|
1314
1309
|
}, !(header?.websiteLogo === DEFAULT_HEADER_IMAGE_LP && isCustomWebsite) ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -1387,9 +1382,7 @@ function MobileHeader({
|
|
|
1387
1382
|
const isAndroidDelisted = header?.isAndroidDelisted;
|
|
1388
1383
|
const iosDownloadLink = header?.iosDownloadLink;
|
|
1389
1384
|
const androidDownloadLink = header?.androidDownloadLink;
|
|
1390
|
-
|
|
1391
|
-
// console.log(header, 'sakshat header mobile');
|
|
1392
|
-
|
|
1385
|
+
console.log(header, 'sakshat header mobile');
|
|
1393
1386
|
if (isTutorWebsite) {
|
|
1394
1387
|
if (isAndroidDelisted && apkURL) {
|
|
1395
1388
|
downloadLink = /*#__PURE__*/React.createElement(Button, {
|