accounts-frontend/packages/app/components/auth/resendActivation/ResendActivationBody.tsx

46 lines
1.3 KiB
TypeScript
Raw Normal View History

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