diy-template-components 1.0.16 → 1.0.18

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
@@ -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 && /*#__PURE__*/React.createElement(Button, {
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,
@@ -1419,7 +1419,20 @@ function MobileHeader({
1419
1419
  downloadLink = null;
1420
1420
  }
1421
1421
  } else {
1422
- if (header?.appLink) {
1422
+ if (header?.isAndroidDelisted && header?.apkURL) {
1423
+ downloadLink = /*#__PURE__*/React.createElement(Button, {
1424
+ data: {
1425
+ link: header?.apkURL,
1426
+ isLink: 1,
1427
+ value: 'Download App',
1428
+ isExternal: 1
1429
+ },
1430
+ type: 'primary',
1431
+ size: 'small',
1432
+ target: 'blank',
1433
+ rel: null
1434
+ });
1435
+ } else if (header?.appLink) {
1423
1436
  downloadLink = /*#__PURE__*/React.createElement(Button, {
1424
1437
  data: {
1425
1438
  link: header?.appLink,