Further cleanup of components for subscription use
This commit is contained in:
@@ -12,16 +12,12 @@ class SignInForm extends React.Component {
|
||||
|
||||
handleSubmit = e => {
|
||||
e.preventDefault();
|
||||
const { apolloClient } = this.props;
|
||||
|
||||
this.props.form.validateFields(async (err, values) => {
|
||||
if (!err) {
|
||||
const { email, password } = values;
|
||||
try {
|
||||
const { user } = await auth.signInWithEmailAndPassword(
|
||||
email,
|
||||
password
|
||||
);
|
||||
await auth.signInWithEmailAndPassword(email, password);
|
||||
|
||||
this.props.form.resetFields();
|
||||
} catch (error) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from "react";
|
||||
import { Redirect } from "react-router-dom";
|
||||
//import { Redirect } from "react-router-dom";
|
||||
import firebase from "../../firebase/firebase.utils";
|
||||
export default class SignOut extends Component {
|
||||
state = {
|
||||
|
||||
Reference in New Issue
Block a user