2016-08-02 21:59:29 +03:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2017-05-25 22:11:57 +03:00
|
|
|
import { Link } from 'react-router-dom';
|
2016-08-02 21:59:29 +03:00
|
|
|
|
2019-12-07 21:02:00 +02:00
|
|
|
import icons from 'app/components/ui/icons.scss';
|
|
|
|
import BaseAuthBody from 'app/components/auth/BaseAuthBody';
|
2020-06-04 19:41:27 +03:00
|
|
|
import appName from 'app/components/auth/appInfo/appName.intl';
|
2016-08-02 21:59:29 +03:00
|
|
|
|
|
|
|
import styles from './acceptRules.scss';
|
|
|
|
|
|
|
|
export default class AcceptRulesBody extends BaseAuthBody {
|
2020-05-24 02:08:24 +03:00
|
|
|
static displayName = 'AcceptRulesBody';
|
|
|
|
static panelId = 'acceptRules';
|
2016-08-02 21:59:29 +03:00
|
|
|
|
2020-05-24 02:08:24 +03:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{this.renderErrors()}
|
2016-08-02 21:59:29 +03:00
|
|
|
|
2020-05-24 02:08:24 +03:00
|
|
|
<div className={styles.security}>
|
|
|
|
<span className={icons.lock} />
|
|
|
|
</div>
|
2016-08-02 21:59:29 +03:00
|
|
|
|
2020-05-24 02:08:24 +03:00
|
|
|
<p className={styles.descriptionText}>
|
|
|
|
<Message
|
2020-06-04 19:41:27 +03:00
|
|
|
key="description1"
|
|
|
|
defaultMessage="We have updated our {link}."
|
2020-05-24 02:08:24 +03:00
|
|
|
values={{
|
|
|
|
link: (
|
|
|
|
<Link to="/rules" target="_blank">
|
2020-06-04 19:41:27 +03:00
|
|
|
<Message key="termsOfService" defaultMessage="terms of service" />
|
2020-05-24 02:08:24 +03:00
|
|
|
</Link>
|
|
|
|
),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
<br />
|
|
|
|
<Message
|
2020-06-04 19:41:27 +03:00
|
|
|
key="description2"
|
|
|
|
defaultMessage="In order to continue using {name} service, you need to accept them."
|
2020-05-24 02:08:24 +03:00
|
|
|
values={{
|
2020-06-04 19:41:27 +03:00
|
|
|
name: <Message {...appName} />,
|
2020-05-24 02:08:24 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2016-08-02 21:59:29 +03:00
|
|
|
}
|