2016-03-13 14:06:31 +05:30
|
|
|
import React from 'react';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
2016-05-14 16:56:17 +05:30
|
|
|
import { Button } from 'components/ui/form';
|
2016-05-14 18:08:00 +05:30
|
|
|
import RejectionLink from 'components/auth/RejectionLink';
|
2016-05-14 16:56:17 +05:30
|
|
|
import AuthTitle from 'components/auth/AuthTitle';
|
|
|
|
import activationMessages from 'components/auth/activation/Activation.intl.json';
|
2016-07-24 14:02:54 +05:30
|
|
|
import forgotPasswordMessages from 'components/auth/forgotPassword/ForgotPassword.intl.json';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
2016-05-14 16:56:17 +05:30
|
|
|
import messages from './Register.intl.json';
|
|
|
|
import Body from './RegisterBody';
|
2016-02-13 20:58:47 +05:30
|
|
|
|
2016-01-31 18:29:38 +05:30
|
|
|
export default function Register() {
|
|
|
|
return {
|
2016-05-14 16:56:17 +05:30
|
|
|
Title: () => <AuthTitle title={messages.registerTitle} />,
|
2016-02-13 20:58:47 +05:30
|
|
|
Body,
|
2016-05-20 01:20:02 +05:30
|
|
|
Footer: () => <Button color="blue" label={messages.signUpButton} type="submit" />,
|
2016-07-24 14:02:54 +05:30
|
|
|
Links: () => (
|
|
|
|
<span>
|
|
|
|
<RejectionLink label={activationMessages.didNotReceivedEmail} payload={{requestEmail: true}} />
|
|
|
|
{' | '}
|
|
|
|
<RejectionLink label={forgotPasswordMessages.alreadyHaveCode} />
|
|
|
|
</span>
|
|
|
|
)
|
2016-01-31 18:29:38 +05:30
|
|
|
};
|
|
|
|
}
|