Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Hide more apps section in preferences on macOS (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Nov 15, 2020
1 parent dbecfee commit 45671ad
Showing 1 changed file with 38 additions and 28 deletions.
66 changes: 38 additions & 28 deletions src/components/pages/preferences/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,35 +370,45 @@ const Preferences = (props) => {
</List>
</Paper>

<Typography variant="subtitle2" color="textPrimary" className={classes.paperTitle}>
More Apps
</Typography>
<Paper elevation={0} className={classes.paper}>
<List disablePadding dense>
<ListItem
button
onClick={() => requestOpenInBrowser('https://webcatalog.app?utm_source=translatium_app')}
className={classes.listItemPromotion}
>
<div className={classes.promotionBlock}>
<div className={classes.promotionLeft}>
<img src={webcatalogIconPng} alt="WebCatalog" className={classes.appIcon} />
</div>
<div className={classes.promotionRight}>
<div>
<Typography variant="body1" className={classes.appTitle}>
WebCatalog
</Typography>
<Typography variant="body2" color="textSecondary">
Turn Any Websites Into Desktop Apps
</Typography>
{/* Apple doesn't allow this in Mac App Store version,
citing Guideline 2.4.5(iv) - Performance
They may not download or install standalone apps, kexts,
additional code, or resources to add functionality
or significantly change the app from what
we see during the review process. */}
{!window.process.mas && (
<>
<Typography variant="subtitle2" color="textPrimary" className={classes.paperTitle}>
More Apps
</Typography>
<Paper elevation={0} className={classes.paper}>
<List disablePadding dense>
<ListItem
button
onClick={() => requestOpenInBrowser('https://webcatalog.app?utm_source=translatium_app')}
className={classes.listItemPromotion}
>
<div className={classes.promotionBlock}>
<div className={classes.promotionLeft}>
<img src={webcatalogIconPng} alt="WebCatalog" className={classes.appIcon} />
</div>
<div className={classes.promotionRight}>
<div>
<Typography variant="body1" className={classes.appTitle}>
WebCatalog
</Typography>
<Typography variant="body2" color="textSecondary">
Turn Any Websites Into Desktop Apps
</Typography>
</div>
</div>
</div>
</div>
</div>
<ChevronRightIcon color="action" />
</ListItem>
</List>
</Paper>
<ChevronRightIcon color="action" />
</ListItem>
</List>
</Paper>
</>
)}

<Typography variant="body2" className={classes.paperTitle} />
<Paper elevation={0} className={classes.paper}>
Expand Down

0 comments on commit 45671ad

Please sign in to comment.