37 lines
1.1 KiB
React
Raw Normal View History

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
import styles from './appInfo.scss';
2016-05-14 14:26:17 +03:00
import messages from './AppInfo.intl.json';
export default class AppInfo extends Component {
static displayName = 'AppInfo';
static propTypes = {
name: PropTypes.string,
description: PropTypes.string,
onGoToAuth: PropTypes.func.isRequired
};
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 (
<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>
<div className={styles.descriptionContainer}>
<p className={styles.description}>
{description}
2016-01-03 23:18:42 +02:00
</p>
</div>
<div className={styles.goToAuth}>
2016-05-14 14:26:17 +03:00
<Button onClick={onGoToAuth} label={messages.goToAuth} />
</div>
2016-01-03 23:18:42 +02:00
</div>
);
}
}