2016-01-16 17:36:22 +05:30
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2016-01-16 18:05:12 +05:30
|
|
|
import Helmet from 'react-helmet';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
|
|
|
import buttons from 'components/ui/buttons.scss';
|
|
|
|
import { Panel, PanelBody, PanelFooter } from 'components/ui/Panel';
|
|
|
|
import { Input } from 'components/ui/Form';
|
|
|
|
|
2016-01-19 11:47:21 +05:30
|
|
|
import styles from './activation.scss';
|
|
|
|
import {helpLinks as helpLinksStyles} from './helpLinks.scss';
|
|
|
|
import messages from './Activation.messages';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
2016-01-31 18:29:38 +05:30
|
|
|
export default function Activation() {
|
|
|
|
var Title = () => ( // TODO: separate component for PageTitle
|
|
|
|
<Message {...messages.accountActivationTitle}>
|
|
|
|
{(msg) => <span>{msg}<Helmet title={msg} /></span>}
|
|
|
|
</Message>
|
|
|
|
);
|
|
|
|
Title.goBack = '/register';
|
|
|
|
|
|
|
|
return {
|
|
|
|
Title,
|
|
|
|
Body: () => (
|
|
|
|
<div>
|
|
|
|
<div className={styles.description}>
|
|
|
|
<div className={styles.descriptionImage} />
|
|
|
|
|
|
|
|
<div className={styles.descriptionText}>
|
|
|
|
<Message {...messages.activationMailWasSent} values={{
|
|
|
|
email: (<b>erickskrauch@yandex.ru</b>)
|
|
|
|
}} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.formRow}>
|
|
|
|
<Input color="blue" className={styles.activationCodeInput} placeholder={messages.enterTheCode} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
Footer: (props) => (
|
|
|
|
<button className={buttons.blue} onClick={(event) => {
|
|
|
|
event.preventDefault();
|
|
|
|
|
|
|
|
props.history.push('/oauth/permissions');
|
|
|
|
}}>
|
|
|
|
<Message {...messages.confirmEmail} />
|
|
|
|
</button>
|
|
|
|
),
|
|
|
|
Links: () => (
|
|
|
|
<a href="#">
|
|
|
|
<Message {...messages.didNotReceivedEmail} />
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export class _Activation extends Component {
|
2016-01-16 17:36:22 +05:30
|
|
|
displayName = 'Activation';
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2016-01-19 11:47:21 +05:30
|
|
|
<div>
|
|
|
|
<Message {...messages.accountActivationTitle}>
|
|
|
|
{(msg) => <Helmet title={msg} />}
|
|
|
|
</Message>
|
2016-01-16 18:05:12 +05:30
|
|
|
|
2016-01-16 17:36:22 +05:30
|
|
|
<Panel icon="arrowLeft" title={<Message {...messages.accountActivationTitle} />}>
|
|
|
|
<PanelBody>
|
|
|
|
<div className={styles.description}>
|
|
|
|
<div className={styles.descriptionImage} />
|
|
|
|
|
|
|
|
<div className={styles.descriptionText}>
|
|
|
|
<Message {...messages.activationMailWasSent} values={{
|
|
|
|
email: (<b>erickskrauch@yandex.ru</b>)
|
|
|
|
}} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.formRow}>
|
2016-01-19 11:47:21 +05:30
|
|
|
<Input color="blue" className={styles.activationCodeInput} placeholder={messages.enterTheCode} />
|
2016-01-16 17:36:22 +05:30
|
|
|
</div>
|
|
|
|
</PanelBody>
|
|
|
|
<PanelFooter>
|
|
|
|
<button className={buttons.blue}>
|
|
|
|
<Message {...messages.confirmEmail} />
|
|
|
|
</button>
|
|
|
|
</PanelFooter>
|
|
|
|
</Panel>
|
2016-01-19 11:47:21 +05:30
|
|
|
<div className={helpLinksStyles}>
|
2016-01-16 17:36:22 +05:30
|
|
|
<a href="#">
|
|
|
|
<Message {...messages.didNotReceivedEmail} />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|