More refactoring

This commit is contained in:
Chi Vinh Le
2018-02-09 23:18:21 +01:00
parent f4fc8915e3
commit 4b6a3b5b9d
17 changed files with 352 additions and 28 deletions
@@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import styles from './ForgotPassword.css';
import { Button, TextField, Alert, Success } from 'coral-ui';
import t from 'coral-framework/services/i18n';
class ForgotPassword extends React.Component {
constructor(props) {
@@ -23,8 +24,7 @@ class ForgotPassword extends React.Component {
renderSuccess() {
return (
<div className={styles.success} onClick={this.handleSignInLink}>
If you have a registered account, a password reset link was sent to that
email.{' '}
{t('password_reset.mail_sent')}{' '}
<a
className={styles.signInLink}
href="#"
@@ -7,7 +7,6 @@ import ForgotPassword from '../components/ForgotPassword';
class ForgotPasswordContainer extends Component {
state = {
email: '',
password: '',
};
handleSubmit = () => {