mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-06 08:11:20 +05:30
39 lines
1.2 KiB
React
39 lines
1.2 KiB
React
|
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';
|
||
|
|
||
|
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}>
|
||
|
<Message {...messages.description} values={{
|
||
|
link: (
|
||
|
<Link to="/rules" target="_blank">
|
||
|
<Message {...registerMessages.termsOfService} />
|
||
|
</Link>
|
||
|
)
|
||
|
}} />
|
||
|
</p>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|