2016-05-23 00:28:43 +05:30
|
|
|
|
import React from 'react';
|
2020-06-04 22:11:27 +05:30
|
|
|
|
import { defineMessages, FormattedMessage as Message } from 'react-intl';
|
2019-12-08 00:32:00 +05:30
|
|
|
|
import { Input, Captcha } from 'app/components/ui/form';
|
2016-05-23 00:28:43 +05:30
|
|
|
|
|
2019-12-08 00:32:00 +05:30
|
|
|
|
import BaseAuthBody from '../BaseAuthBody';
|
2016-05-23 00:28:43 +05:30
|
|
|
|
import styles from './resendActivation.scss';
|
2020-06-04 22:11:27 +05:30
|
|
|
|
|
|
|
|
|
const placeholders = defineMessages({
|
|
|
|
|
yourEmail: 'Your E‑mail',
|
|
|
|
|
});
|
2016-05-23 00:28:43 +05:30
|
|
|
|
|
|
|
|
|
export default class ResendActivation extends BaseAuthBody {
|
2020-05-24 04:38:24 +05:30
|
|
|
|
static displayName = 'ResendActivation';
|
|
|
|
|
static panelId = 'resendActivation';
|
|
|
|
|
static hasGoBack = true;
|
2019-11-27 14:33:32 +05:30
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
|
autoFocusField = 'email';
|
2019-11-27 14:33:32 +05:30
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
{this.renderErrors()}
|
2019-11-27 14:33:32 +05:30
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
|
<div className={styles.description}>
|
2020-06-04 22:11:27 +05:30
|
|
|
|
<Message
|
|
|
|
|
key="specifyYourEmail"
|
|
|
|
|
defaultMessage="Please, enter an E‑mail you've registered with and we will send you new activation code"
|
|
|
|
|
/>
|
2020-05-24 04:38:24 +05:30
|
|
|
|
</div>
|
2019-11-27 14:33:32 +05:30
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
|
<Input
|
|
|
|
|
{...this.bindField('email')}
|
|
|
|
|
icon="envelope"
|
|
|
|
|
color="blue"
|
|
|
|
|
type="email"
|
|
|
|
|
required
|
2020-06-04 22:11:27 +05:30
|
|
|
|
placeholder={placeholders.yourEmail}
|
2020-05-24 04:38:24 +05:30
|
|
|
|
defaultValue={this.context.user.email}
|
|
|
|
|
/>
|
2019-11-27 14:33:32 +05:30
|
|
|
|
|
2020-05-24 04:38:24 +05:30
|
|
|
|
<Captcha {...this.bindField('captcha')} delay={600} />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2016-05-23 00:28:43 +05:30
|
|
|
|
}
|