Added landing page.

This commit is contained in:
Patrick Fic
2021-06-29 07:09:57 -07:00
parent 1e547f1815
commit 00f71eba77
38 changed files with 3113 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import { connect } from "react-redux";
import { Redirect } from "react-router-dom";
import { createStructuredSelector } from "reselect";
import { selectCurrentUser } from "../../redux/user/user.selectors";
import LandingPageStatic from "../../landing/home/index";
const mapStateToProps = createStructuredSelector({
currentUser: selectCurrentUser,
@@ -13,5 +14,6 @@ export default connect(mapStateToProps, null)(LandingPage);
export function LandingPage({ currentUser }) {
if (currentUser.authorized) return <Redirect to={"/manage"} />;
return <Redirect to={"/signin"} />;
return <LandingPageStatic />;
//return <Redirect to={"/signin"} />;
}