2016-05-23 00:28:43 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
|
|
|
|
2016-07-31 19:23:16 +05:30
|
|
|
import { Input, Captcha } from 'components/ui/form';
|
2016-05-23 00:28:43 +05:30
|
|
|
import registerMessages from 'components/auth/register/Register.intl.json';
|
|
|
|
|
|
|
|
import BaseAuthBody from 'components/auth/BaseAuthBody';
|
|
|
|
import styles from './resendActivation.scss';
|
|
|
|
import messages from './ResendActivation.intl.json';
|
|
|
|
|
|
|
|
export default class ResendActivation extends BaseAuthBody {
|
|
|
|
static displayName = 'ResendActivation';
|
|
|
|
static panelId = 'resendActivation';
|
|
|
|
static hasGoBack = true;
|
|
|
|
|
|
|
|
autoFocusField = 'email';
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{this.renderErrors()}
|
|
|
|
|
|
|
|
<div className={styles.description}>
|
|
|
|
<Message {...messages.specifyYourEmail} />
|
|
|
|
</div>
|
|
|
|
|
2016-07-31 19:23:16 +05:30
|
|
|
<Input {...this.bindField('email')}
|
|
|
|
icon="envelope"
|
|
|
|
color="blue"
|
|
|
|
type="email"
|
|
|
|
required
|
|
|
|
placeholder={registerMessages.yourEmail}
|
|
|
|
defaultValue={this.context.user.email}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Captcha {...this.bindField('captcha')} />
|
2016-05-23 00:28:43 +05:30
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|