From 96d4f0372b11168c36474a0e8aa5149b9eab781e Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Mon, 10 Aug 2020 08:54:54 -0700
Subject: [PATCH] Added auto-redirect if user is already signed in BOD-248
---
client/src/App/{App.js => App.jsx} | 0
client/src/pages/landing/landing.page.jsx | 22 +++++++++++++---------
2 files changed, 13 insertions(+), 9 deletions(-)
rename client/src/App/{App.js => App.jsx} (100%)
diff --git a/client/src/App/App.js b/client/src/App/App.jsx
similarity index 100%
rename from client/src/App/App.js
rename to client/src/App/App.jsx
diff --git a/client/src/pages/landing/landing.page.jsx b/client/src/pages/landing/landing.page.jsx
index a7c04163d..03085daf5 100644
--- a/client/src/pages/landing/landing.page.jsx
+++ b/client/src/pages/landing/landing.page.jsx
@@ -1,13 +1,17 @@
-import { Layout, Typography } from "antd";
import React from "react";
-import ManageSignInButton from "../../components/manage-sign-in-button/manage-sign-in-button.component";
+import { connect } from "react-redux";
+import { Redirect } from "react-router-dom";
+import { createStructuredSelector } from "reselect";
+import { selectCurrentUser } from "../../redux/user/user.selectors";
-export default function LandingPage() {
- return (
-
-
+const mapStateToProps = createStructuredSelector({
+ currentUser: selectCurrentUser,
+});
- ImEX.Online
-
- );
+export default connect(mapStateToProps, null)(LandingPage);
+
+export function LandingPage({ currentUser }) {
+ if (currentUser.authorized) return ;
+
+ return ;
}