2016-02-06 12:47:51 +02:00
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
|
2016-05-14 14:26:17 +03:00
|
|
|
import { Button } from 'components/ui/form';
|
2016-01-03 23:18:42 +02:00
|
|
|
|
2016-01-04 08:02:13 +02:00
|
|
|
import styles from './appInfo.scss';
|
2016-05-14 14:26:17 +03:00
|
|
|
import messages from './AppInfo.intl.json';
|
2016-02-06 12:47:51 +02:00
|
|
|
|
|
|
|
export default class AppInfo extends Component {
|
|
|
|
static displayName = 'AppInfo';
|
|
|
|
|
|
|
|
static propTypes = {
|
2016-03-13 10:36:31 +02:00
|
|
|
name: PropTypes.string,
|
|
|
|
description: PropTypes.string,
|
2016-02-06 12:47:51 +02:00
|
|
|
onGoToAuth: PropTypes.func.isRequired
|
|
|
|
};
|
2016-01-04 08:02:13 +02:00
|
|
|
|
2016-01-03 23:18:42 +02:00
|
|
|
render() {
|
2016-05-14 14:26:17 +03:00
|
|
|
const { name, description, onGoToAuth } = this.props;
|
2016-01-03 23:18:42 +02:00
|
|
|
|
|
|
|
return (
|
2016-01-04 08:02:13 +02:00
|
|
|
<div className={styles.appInfo}>
|
|
|
|
<div className={styles.logoContainer}>
|
2016-03-01 22:36:14 +02:00
|
|
|
<h2 className={styles.logo}>{name || 'Ely Accounts'}</h2>
|
2016-01-03 23:18:42 +02:00
|
|
|
</div>
|
2016-01-04 08:02:13 +02:00
|
|
|
<div className={styles.descriptionContainer}>
|
|
|
|
<p className={styles.description}>
|
|
|
|
{description}
|
2016-01-03 23:18:42 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2016-02-06 12:47:51 +02:00
|
|
|
<div className={styles.goToAuth}>
|
2016-05-14 14:26:17 +03:00
|
|
|
<Button onClick={onGoToAuth} label={messages.goToAuth} />
|
2016-02-06 12:47:51 +02:00
|
|
|
</div>
|
2016-01-03 23:18:42 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|