accounts-frontend/packages/app/components/auth/acceptRules/AcceptRulesBody.tsx

50 lines
1.6 KiB
TypeScript
Raw Normal View History

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