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 ; }