accounts-frontend/src/components/auth/register/Register.jsx

26 lines
961 B
React
Raw Normal View History

import React from 'react';
2016-05-14 16:56:17 +05:30
import { Button } from 'components/ui/form';
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';
import forgotPasswordMessages from 'components/auth/forgotPassword/ForgotPassword.intl.json';
2016-05-14 16:56:17 +05:30
import messages from './Register.intl.json';
import Body from './RegisterBody';
export default function Register() {
return {
2016-05-14 16:56:17 +05:30
Title: () => <AuthTitle title={messages.registerTitle} />,
Body,
Footer: () => <Button color="blue" label={messages.signUpButton} type="submit" />,
Links: () => (
<span>
<RejectionLink label={activationMessages.didNotReceivedEmail} payload={{requestEmail: true}} />
{' | '}
<RejectionLink label={forgotPasswordMessages.alreadyHaveCode} />
</span>
)
};
}