Remove Sign up link and add dead code warning to sign up form

This commit is contained in:
Mikko Koski 2017-03-24 17:31:17 +02:00
parent 9f7d1e53b2
commit 1ef15243f3
2 changed files with 20 additions and 2 deletions

View file

@ -48,9 +48,9 @@ export const AuthenticationPageComponent = props => {
{isLogin
? <LoginForm onSubmit={onLoginSubmit} />
: <SignUpForm onSubmit={onSignUpSubmit} />}
{isLogin
{/* {isLogin
? <NamedLink name="SignUpPage" to={{ state: from ? { from } : null }}>Sign up</NamedLink>
: <NamedLink name="LogInPage" to={{ state: from ? { from } : null }}>Log in</NamedLink>}
: <NamedLink name="LogInPage" to={{ state: from ? { from } : null }}>Log in</NamedLink>} */}
</div>
</PageLayout>
);

View file

@ -1,3 +1,21 @@
// **************************************************************************
//
// D E A D
//
// C O D E
//
// W A R N I N G !
//
// This component is currently not in use because:
//
// - We don't have signup ability in API yet
// - Link to the page/component has been removed
//
// If we decide to take this component into use again, remove this warning.
//
// **************************************************************************
import React from 'react';
import { Field, reduxForm, propTypes as formPropTypes } from 'redux-form';
import { Button, Input } from '../../components';