From 4673149e584b148c18b578d606089261fe0975d8 Mon Sep 17 00:00:00 2001 From: joshuaye Date: Mon, 2 Oct 2023 21:06:14 -0400 Subject: [PATCH 1/3] Make certain routes private --- frontend/src/App.tsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8e5e2ea47..a17204c5f 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -18,6 +18,7 @@ import customTheme from "./theme"; import { AuthenticatedUser } from "./types/AuthTypes"; import Login from "./components/auth/Login"; import Signup from "./components/auth/Signup"; +import PrivateRoute from "./components/auth/PrivateRoute"; import Intake from "./components/pages/IntakePage"; import Visit from "./components/pages/VisitPage"; import Home from "./components/pages/HomePage"; @@ -60,17 +61,12 @@ const App = (): React.ReactElement => { - {/* TODO: Change these to private routes */} - - - - - - + + + + + + From 3be4cacbe236e07c9117ae0a01ff8d093f0b213b Mon Sep 17 00:00:00 2001 From: joshuaye Date: Mon, 2 Oct 2023 21:12:26 -0400 Subject: [PATCH 2/3] Made not found route public --- frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index a17204c5f..6f8f0b030 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -66,7 +66,7 @@ const App = (): React.ReactElement => { - + From c2fd96a1e0463aa3c20015473e0fc4dae12a65af Mon Sep 17 00:00:00 2001 From: joshuaye Date: Mon, 2 Oct 2023 21:22:15 -0400 Subject: [PATCH 3/3] Update format --- frontend/src/App.tsx | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6f8f0b030..19ad07c7a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -61,11 +61,31 @@ const App = (): React.ReactElement => { - - - - - + + + + +