2016-08-03 00:29:29 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
|
|
|
import { Link } from 'react-router';
|
|
|
|
|
|
|
|
import icons from 'components/ui/icons.scss';
|
|
|
|
import BaseAuthBody from 'components/auth/BaseAuthBody';
|
|
|
|
import registerMessages from 'components/auth/register/Register.intl.json';
|
2016-08-06 23:17:38 +05:30
|
|
|
import appInfo from 'components/auth/appInfo/AppInfo.intl.json';
|
2016-08-03 00:29:29 +05:30
|
|
|
|
|
|
|
import styles from './acceptRules.scss';
|
|
|
|
import messages from './AcceptRules.intl.json';
|
|
|
|
|
|
|
|
export default class AcceptRulesBody extends BaseAuthBody {
|
|
|
|
static displayName = 'AcceptRulesBody';
|
|
|
|
static panelId = 'acceptRules';
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{this.renderErrors()}
|
|
|
|
|
|
|
|
<div className={styles.security}>
|
|
|
|
<span className={icons.lock} />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p className={styles.descriptionText}>
|
2016-08-06 23:17:38 +05:30
|
|
|
<Message {...messages.description1} values={{
|
2016-08-03 00:29:29 +05:30
|
|
|
link: (
|
|
|
|
<Link to="/rules" target="_blank">
|
|
|
|
<Message {...registerMessages.termsOfService} />
|
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
}} />
|
2016-08-06 23:17:38 +05:30
|
|
|
<br />
|
|
|
|
<Message {...messages.description2} values={{
|
|
|
|
name: <Message {...appInfo.appName} />
|
|
|
|
}} />
|
2016-08-03 00:29:29 +05:30
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|