Added tech routing paths and basic structure of landing page + sign in + reducers BOD-95
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Grid } from "antd";
|
||||
import "antd/dist/antd.css";
|
||||
import React, { lazy, Suspense, useEffect } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -7,11 +8,11 @@ import { createStructuredSelector } from "reselect";
|
||||
import ErrorBoundary from "../components/error-boundary/error-boundary.component";
|
||||
//Component Imports
|
||||
import LoadingSpinner from "../components/loading-spinner/loading-spinner.component";
|
||||
import TechPageContainer from "../pages/tech/tech.page.container";
|
||||
import { checkUserSession } from "../redux/user/user.actions";
|
||||
import { selectCurrentUser } from "../redux/user/user.selectors";
|
||||
import PrivateRoute from "../utils/private-route";
|
||||
import "./App.styles.scss";
|
||||
import { Grid } from "antd";
|
||||
|
||||
const LandingPage = lazy(() => import("../pages/landing/landing.page"));
|
||||
const ManagePage = lazy(() => import("../pages/manage/manage.page.container"));
|
||||
@@ -35,7 +36,7 @@ export function App({ checkUserSession, currentUser }) {
|
||||
|
||||
const b = Grid.useBreakpoint();
|
||||
console.log("Breakpoints:", b);
|
||||
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (currentUser.authorized === null) {
|
||||
@@ -56,6 +57,11 @@ export function App({ checkUserSession, currentUser }) {
|
||||
path='/manage'
|
||||
component={ManagePage}
|
||||
/>
|
||||
<PrivateRoute
|
||||
isAuthorized={currentUser.authorized}
|
||||
path='/tech'
|
||||
component={TechPageContainer}
|
||||
/>
|
||||
</Suspense>
|
||||
</ErrorBoundary>
|
||||
</Switch>
|
||||
|
||||
Reference in New Issue
Block a user