2021-06-15 12:36:23 +02:00
|
|
|
import { Fragment } from 'react';
|
|
|
|
|
|
|
|
import classes from './AppDetails.module.css';
|
2021-11-09 14:33:51 +01:00
|
|
|
import { Button } from '../../UI';
|
2021-06-15 12:36:23 +02:00
|
|
|
import { checkVersion } from '../../../utility';
|
|
|
|
|
2021-11-09 14:33:51 +01:00
|
|
|
export const AppDetails = (): JSX.Element => {
|
2021-06-15 12:36:23 +02:00
|
|
|
return (
|
|
|
|
<Fragment>
|
|
|
|
<p className={classes.AppVersion}>
|
|
|
|
<a
|
2021-11-09 14:33:51 +01:00
|
|
|
href="https://github.com/pawelmalak/flame"
|
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer"
|
|
|
|
>
|
2021-06-15 12:36:23 +02:00
|
|
|
Flame
|
2021-11-09 14:33:51 +01:00
|
|
|
</a>{' '}
|
2021-06-15 12:36:23 +02:00
|
|
|
version {process.env.REACT_APP_VERSION}
|
|
|
|
</p>
|
2021-07-28 12:52:30 +02:00
|
|
|
<p className={classes.AppVersion}>
|
2021-11-09 14:33:51 +01:00
|
|
|
See changelog{' '}
|
2021-07-28 12:52:30 +02:00
|
|
|
<a
|
2021-11-09 14:33:51 +01:00
|
|
|
href="https://github.com/pawelmalak/flame/blob/master/CHANGELOG.md"
|
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer"
|
|
|
|
>
|
2021-07-28 12:52:30 +02:00
|
|
|
here
|
|
|
|
</a>
|
|
|
|
</p>
|
2021-06-15 12:36:23 +02:00
|
|
|
<Button click={() => checkVersion(true)}>Check for updates</Button>
|
|
|
|
</Fragment>
|
2021-11-09 14:33:51 +01:00
|
|
|
);
|
|
|
|
};
|