From 731e0e3c78834a213c1cb6d52fa912599799e1aa Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sun, 24 Jul 2016 13:17:41 +0300 Subject: [PATCH] Add factory for auth components --- src/components/auth/activation/Activation.jsx | 25 ++++++------- .../auth/changePassword/ChangePassword.jsx | 25 ++++++------- src/components/auth/factory.jsx | 29 +++++++++++++++ .../auth/forgotPassword/ForgotPassword.jsx | 26 ++++++------- src/components/auth/login/Login.jsx | 21 +++++------ src/components/auth/password/Password.jsx | 25 ++++++------- .../auth/permissions/Permissions.jsx | 28 +++++++------- .../auth/recoverPassword/RecoverPassword.jsx | 25 ++++++------- src/components/auth/register/Register.jsx | 37 +++++++++---------- .../resendActivation/ResendActivation.jsx | 25 ++++++------- 10 files changed, 143 insertions(+), 123 deletions(-) create mode 100644 src/components/auth/factory.jsx diff --git a/src/components/auth/activation/Activation.jsx b/src/components/auth/activation/Activation.jsx index 204960c..ec1bf8e 100644 --- a/src/components/auth/activation/Activation.jsx +++ b/src/components/auth/activation/Activation.jsx @@ -1,17 +1,16 @@ -import React from 'react'; - -import { Button } from 'components/ui/form'; -import RejectionLink from 'components/auth/RejectionLink'; -import AuthTitle from 'components/auth/AuthTitle'; +import factory from 'components/auth/factory'; import messages from './Activation.intl.json'; import Body from './ActivationBody'; -export default function Activation() { - return { - Title: () => , - Body, - Footer: () =>