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

[NEU-145] Add note about license key issuing policy in activation window #827

Merged
merged 8 commits into from
Mar 17, 2022
2 changes: 1 addition & 1 deletion main-src/windows/license-registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const create = () => {
win = new BrowserWindow({
backgroundColor: '#FFF',
width: 600,
height: 420,
height: 500,
resizable: false,
maximizable: false,
minimizable: true,
Expand Down
29 changes: 29 additions & 0 deletions src/components/license-registration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import TextField from '@material-ui/core/TextField';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogActions from '@material-ui/core/DialogActions';
import { Typography } from '@material-ui/core';

import connectComponent from '../../helpers/connect-component';
import getWorkspaceFriendlyName from '../../helpers/get-workspace-friendly-name';
Expand Down Expand Up @@ -41,6 +42,15 @@ const styles = (theme) => ({
marginTop: theme.spacing(1),
textAlign: 'right',
},
linkButton: {
cursor: 'pointer',
margin: theme.spacing(0.4),
padding: 0,
fontSize: '0.9rem',
},
typography: {
color: 'rgba(0, 0, 0, 0.54)',
},
});

const DialogLicenseRegistration = ({
Expand Down Expand Up @@ -101,6 +111,25 @@ const DialogLicenseRegistration = ({
Lost your license key?
</Button>
</DialogContentText>

<Typography className={classes.typography}>
If you&#39;ve purchased&nbsp;
{appJson.name}
&nbsp;from Mac App Store or Windows Store,
<Button
className={classes.linkButton}
href="#text-buttons"
color="primary"
onClick={(e) => {
e.preventDefault();
const contactUrl = 'https://webcatalog.io/contact';
requestOpenInBrowser(contactUrl);
}}
>
email us
</Button>
with your purchase receipt attached to receive a free license key.
</Typography>
</DialogContent>
<DialogActions className={classes.dialogActions}>
<div style={{ flex: 1 }}>
Expand Down