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

Commit

Permalink
16.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 committed Jan 1, 2021
1 parent 09685bf commit b0bb853
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Translatium",
"description": "Translate 100+ Languages Instantly",
"version": "16.2.0",
"version": "16.3.0",
"main": "public/electron.js",
"repository": "https://github.com/webcatalog/translatium",
"author": {
Expand Down
51 changes: 27 additions & 24 deletions src/components/pages/home/migration-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,33 @@ const styles = (theme) => ({

const MigrationCard = ({
classes,
}) => (
<Card elevation={0} square className={classNames(classes.card, classes.migrationCard)}>
<CardContent>
<Typography variant="body2" component="p">
Because of a few reasons, we have to republish Translatium under a new app listing.
To continue receiving updates, please reinstall the app from our new listing.
</Typography>
</CardContent>
<CardActions className={classes.migrationCardActions}>
<Button
variant="contained"
size="medium"
color="primary"
disableElevation
classes={{ label: classes.translateButtonLabel }}
onClick={() => {
requestOpenInBrowser('macappstore://apps.apple.com/app/id1547052291');
}}
>
Mac App Store
</Button>
</CardActions>
</Card>
);
}) => {
if (!window.process.mas) return null;
return (
<Card elevation={0} square className={classNames(classes.card, classes.migrationCard)}>
<CardContent>
<Typography variant="body2" component="p">
Because of a few reasons, we have to republish Translatium under a new app listing.
To continue receiving updates, please reinstall the app from our new listing.
</Typography>
</CardContent>
<CardActions className={classes.migrationCardActions}>
<Button
variant="contained"
size="medium"
color="primary"
disableElevation
classes={{ label: classes.translateButtonLabel }}
onClick={() => {
requestOpenInBrowser('macappstore://apps.apple.com/app/id1547052291');
}}
>
Mac App Store
</Button>
</CardActions>
</Card>
);
};

MigrationCard.propTypes = {
classes: PropTypes.object.isRequired,
Expand Down

0 comments on commit b0bb853

Please sign in to comment.