diff --git a/app.db b/app.db index 6fa35e2..d722110 100644 Binary files a/app.db and b/app.db differ diff --git a/client/src/images/real_time_collaboration.svg b/client/src/images/real_time_collaboration.svg new file mode 100644 index 0000000..93bd4d8 --- /dev/null +++ b/client/src/images/real_time_collaboration.svg @@ -0,0 +1 @@ +real_time_collaboration \ No newline at end of file diff --git a/client/src/pages/HomePage.tsx b/client/src/pages/HomePage.tsx index 57f3804..bd556ed 100644 --- a/client/src/pages/HomePage.tsx +++ b/client/src/pages/HomePage.tsx @@ -1,7 +1,20 @@ import React, { FC } from "react"; +import { Redirect } from "react-router-dom"; +import SignInSide from "../components/SignInSide"; +import { useAuth0 } from "../authentication/auth0"; +import { getUID } from "../authentication/helpers"; +import * as ROUTES from "../constants/routes"; const HomePage: FC = () => { - return
HomePage
; + const { isAuthenticated, user } = useAuth0(); + + if (isAuthenticated) { + // retrieve userId + const uid = getUID(user); + return ; + } else { + return ; + } }; export default HomePage; diff --git a/client/src/routes/AppRouter.tsx b/client/src/routes/AppRouter.tsx index d2d529a..daccd25 100644 --- a/client/src/routes/AppRouter.tsx +++ b/client/src/routes/AppRouter.tsx @@ -7,7 +7,7 @@ import UserController from "../controllers/UserController"; import TicketController from "../controllers/TicketController"; import NotFoundPage from "../pages/NotFoundPage"; import TestPage from "../pages/TestPage"; -import SigninPage from "../pages/SigninPage"; +// import SigninPage from "../pages/SigninPage"; import * as ROUTES from "../constants/routes"; const AppRouter = () => { @@ -15,7 +15,7 @@ const AppRouter = () => { - + {/* */}