replaced eslint:recommended with prettier

This commit is contained in:
Wyatt Johnson
2018-01-11 20:00:34 -07:00
parent d56c19016a
commit 0abc2ca243
649 changed files with 16235 additions and 13008 deletions
@@ -1,26 +1,25 @@
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';
import {Button, TextField} from 'plugin-api/beta/client/components/ui';
import { Button, TextField } from 'plugin-api/beta/client/components/ui';
import t from 'coral-framework/services/i18n';
class ForgotContent extends React.Component {
state = {value: ''};
state = { value: '' };
handleSubmit = (e) => {
handleSubmit = e => {
e.preventDefault();
this.props.fetchForgotPassword(this.state.value);
};
handleChangeEmail = (e) => {
const {value} = e.target;
this.setState({value});
}
handleChangeEmail = e => {
const { value } = e.target;
this.setState({ value });
};
render() {
const {changeView, auth} = this.props;
const {passwordRequestSuccess, passwordRequestFailure} = auth;
const { changeView, auth } = this.props;
const { passwordRequestSuccess, passwordRequestFailure } = auth;
return (
<div>
@@ -31,7 +30,7 @@ class ForgotContent extends React.Component {
<div className={styles.textField}>
<TextField
type="email"
style={{fontSize: 16}}
style={{ fontSize: 16 }}
id="email"
name="email"
label={t('sign_in.email')}
@@ -47,31 +46,25 @@ class ForgotContent extends React.Component {
>
{t('sign_in.recover_password')}
</Button>
{passwordRequestSuccess
? <p className={styles.passwordRequestSuccess}>
{passwordRequestSuccess ? (
<p className={styles.passwordRequestSuccess}>
{passwordRequestSuccess}
</p>
: null}
{passwordRequestFailure
? <p className={styles.passwordRequestFailure}>
) : null}
{passwordRequestFailure ? (
<p className={styles.passwordRequestFailure}>
{passwordRequestFailure}
</p>
: null}
) : null}
</form>
<div className={styles.footer}>
<span>
{t('sign_in.need_an_account')}
{' '}
<a onClick={() => changeView('SIGNUP')}>
{t('sign_in.register')}
</a>
{t('sign_in.need_an_account')}{' '}
<a onClick={() => changeView('SIGNUP')}>{t('sign_in.register')}</a>
</span>
<span>
{t('sign_in.already_have_an_account')}
{' '}
<a onClick={() => changeView('SIGNIN')}>
{t('sign_in.sign_in')}
</a>
{t('sign_in.already_have_an_account')}{' '}
<a onClick={() => changeView('SIGNIN')}>{t('sign_in.sign_in')}</a>
</span>
</div>
</div>