diy-template-components 1.0.15 → 1.0.17
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 +17 -22
- package/build/index.es.js.map +1 -1
- package/build/index.js +17 -22
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -155,7 +155,7 @@ const useSectionStyles$a = createUseStyles(theme => ({
|
|
|
155
155
|
imageAnchorMobile: {
|
|
156
156
|
pointerEvents: 'auto',
|
|
157
157
|
cursor: 'default',
|
|
158
|
-
width: '100%',
|
|
158
|
+
// width: '100%',
|
|
159
159
|
maxWidth: '85px',
|
|
160
160
|
cursor: 'default',
|
|
161
161
|
height: '46px',
|
|
@@ -1103,7 +1103,7 @@ function OptionList({
|
|
|
1103
1103
|
list: moreContent,
|
|
1104
1104
|
label: 'More',
|
|
1105
1105
|
icon: arrowDown
|
|
1106
|
-
}) : null, isTutorWebsite && /*#__PURE__*/React.createElement(React.Fragment, null, isAndroidDelisted ? /*#__PURE__*/React.createElement(React.Fragment, null, renderDownloadAppButton()) : /*#__PURE__*/React.createElement(React.Fragment, null, !headerData?.navs && renderAppDownloadLinks())), isMobile ? downloadApkURL || headerData?.appLink
|
|
1106
|
+
}) : 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 || headerData?.appLink?.length > 0 ? /*#__PURE__*/React.createElement(Button, {
|
|
1107
1107
|
data: {
|
|
1108
1108
|
link: downloadApkURL ? downloadApkURL : headerData?.appLink,
|
|
1109
1109
|
isLink: 1,
|
|
@@ -1117,7 +1117,7 @@ function OptionList({
|
|
|
1117
1117
|
styling: isMobile ? {
|
|
1118
1118
|
margin: '0 40px'
|
|
1119
1119
|
} : {}
|
|
1120
|
-
}) : headerData?.loginCtaLink ? /*#__PURE__*/React.createElement(Button, {
|
|
1120
|
+
}) : null : headerData?.loginCtaLink ? /*#__PURE__*/React.createElement(Button, {
|
|
1121
1121
|
data: {
|
|
1122
1122
|
link: headerData?.loginCtaLink,
|
|
1123
1123
|
isLink: 1,
|
|
@@ -1333,24 +1333,6 @@ function MobileHeader({
|
|
|
1333
1333
|
let downloadLink = null;
|
|
1334
1334
|
if (isTutorWebsite) {
|
|
1335
1335
|
console.log(header, 'sakshat header mobile');
|
|
1336
|
-
if (header?.isAndroidDelisted && header?.apkURL) {
|
|
1337
|
-
downloadLink = /*#__PURE__*/React.createElement(Button, {
|
|
1338
|
-
data: {
|
|
1339
|
-
link: header?.apkURL,
|
|
1340
|
-
isLink: 1,
|
|
1341
|
-
value: 'Download App',
|
|
1342
|
-
isExternal: 1
|
|
1343
|
-
},
|
|
1344
|
-
type: '',
|
|
1345
|
-
size: 'small',
|
|
1346
|
-
target: 'blank',
|
|
1347
|
-
rel: null,
|
|
1348
|
-
style: {
|
|
1349
|
-
padding: 0,
|
|
1350
|
-
paddingRight: '8px'
|
|
1351
|
-
}
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
1336
|
if (header?.iosUrl) {
|
|
1355
1337
|
iosUrl = /*#__PURE__*/React.createElement(Button, {
|
|
1356
1338
|
data: {
|
|
@@ -1392,7 +1374,20 @@ function MobileHeader({
|
|
|
1392
1374
|
}
|
|
1393
1375
|
});
|
|
1394
1376
|
}
|
|
1395
|
-
if (
|
|
1377
|
+
if (header?.isAndroidDelisted && header?.apkURL) {
|
|
1378
|
+
downloadLink = /*#__PURE__*/React.createElement(Button, {
|
|
1379
|
+
data: {
|
|
1380
|
+
link: header?.apkURL,
|
|
1381
|
+
isLink: 1,
|
|
1382
|
+
value: 'Download App',
|
|
1383
|
+
isExternal: 1
|
|
1384
|
+
},
|
|
1385
|
+
type: 'primary',
|
|
1386
|
+
size: 'small',
|
|
1387
|
+
target: 'blank',
|
|
1388
|
+
rel: null
|
|
1389
|
+
});
|
|
1390
|
+
} else if (iosUrl && androidUrl) {
|
|
1396
1391
|
downloadLink = /*#__PURE__*/React.createElement("div", null, iosUrl, androidUrl);
|
|
1397
1392
|
} else if (header?.iosUrl) {
|
|
1398
1393
|
downloadLink = /*#__PURE__*/React.createElement(Button, {
|