2019-12-07 16:58:52 +05:30
|
|
|
import React from 'react';
|
2016-05-20 00:59:14 +05:30
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2016-05-14 16:56:17 +05:30
|
|
|
import { Button } from 'components/ui/form';
|
2016-05-22 22:55:38 +05:30
|
|
|
import { FooterMenu } from 'components/footerMenu';
|
2016-01-04 02:48:42 +05:30
|
|
|
|
2016-01-04 11:32:13 +05:30
|
|
|
import styles from './appInfo.scss';
|
2016-05-14 16:56:17 +05:30
|
|
|
import messages from './AppInfo.intl.json';
|
2016-02-06 16:17:51 +05:30
|
|
|
|
2019-12-07 16:58:52 +05:30
|
|
|
export default class AppInfo extends React.Component<{
|
|
|
|
name?: string;
|
|
|
|
description?: string;
|
|
|
|
onGoToAuth: () => void;
|
2017-08-23 02:01:41 +05:30
|
|
|
}> {
|
2019-11-27 14:33:32 +05:30
|
|
|
render() {
|
|
|
|
const { name, description, onGoToAuth } = this.props;
|
2016-01-04 02:48:42 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
return (
|
|
|
|
<div className={styles.appInfo}>
|
|
|
|
<div className={styles.logoContainer}>
|
|
|
|
<h2 className={styles.logo}>
|
|
|
|
{name ? name : <Message {...messages.appName} />}
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div className={styles.descriptionContainer}>
|
|
|
|
{description ? (
|
|
|
|
<p className={styles.description}>{description}</p>
|
|
|
|
) : (
|
|
|
|
<div>
|
|
|
|
<p className={styles.description}>
|
|
|
|
<Message {...messages.appDescription} />
|
|
|
|
</p>
|
|
|
|
<p className={styles.description}>
|
|
|
|
<Message
|
|
|
|
{...messages.useItYourself}
|
|
|
|
values={{
|
|
|
|
link: (
|
|
|
|
<a href="http://docs.ely.by/oauth.html">
|
|
|
|
<Message {...messages.documentation} />
|
|
|
|
</a>
|
|
|
|
),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</p>
|
2016-01-04 02:48:42 +05:30
|
|
|
</div>
|
2019-11-27 14:33:32 +05:30
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
<div className={styles.goToAuth}>
|
|
|
|
<Button onClick={onGoToAuth} label={messages.goToAuth} />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className={styles.footer}>
|
|
|
|
<FooterMenu />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2016-01-04 02:48:42 +05:30
|
|
|
}
|