Signin methods working with no errors.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Switch, Route } from "react-router-dom";
|
||||
import { Switch, Route, Redirect } from "react-router-dom";
|
||||
import firebase from "../firebase/firebase.utils";
|
||||
|
||||
import "./App.css";
|
||||
@@ -79,18 +79,17 @@ class App extends React.Component {
|
||||
<Switch>
|
||||
<Route exact path="/" component={LandingPage} />
|
||||
<Route exact path="/unauthorized" component={Unauthorized} />
|
||||
{/* <Route
|
||||
<Route
|
||||
exact
|
||||
path="/signin"
|
||||
render={() =>
|
||||
this.props.currentUser.email != null ? (
|
||||
<Redirect to="/manage" />
|
||||
) : (
|
||||
<SignInContainer />
|
||||
<SignInPage />
|
||||
)
|
||||
}
|
||||
/> */}
|
||||
<Route path="/signin" component={SignInPage} />
|
||||
/>
|
||||
<PrivateRoute
|
||||
isAuthorized={this.props.currentUser.email != null}
|
||||
path="/manage"
|
||||
|
||||
Reference in New Issue
Block a user