@@ -14,7 +14,7 @@ import { ViewPage } from "./components/clientPage/ViewPage";
1414import { LandingPage } from "./components/login/LandingPage" ;
1515import { ChooseLogin } from "./components/login/ChooseLogin" ;
1616import { ForgotPassword } from "./components/forgotPassword/ForgotPassword" ;
17- import { AdminPin } from "./components/authentification/AdminPin " ;
17+ import { Authentification } from "./components/authentification/authentification " ;
1818import { Dashboard } from "./components/dashboard/Dashboard" ;
1919import { Donations } from "./components/donations/Donations"
2020import { ExitSurvey } from "./components/exit_survey/ExitSurvey" ;
@@ -59,7 +59,7 @@ const App = () => {
5959 currentRoute === 'choose-login' ||
6060 currentRoute === 'signup' ||
6161 currentRoute === 'forgot-password' ||
62- currentRoute === 'admin-pin '
62+ currentRoute === 'authentification '
6363 ) ;
6464
6565 return (
@@ -91,16 +91,16 @@ const App = () => {
9191 element = { < ForgotPassword /> }
9292 />
9393 < Route
94- path = "/admin-pin /:userType?"
95- element = { < AdminPin /> }
94+ path = "/authentification /:userType?"
95+ element = { < Authentification /> }
9696 />
9797 < Route
9898 path = "/exit-survey"
99- element = { < ExitSurvey /> }
99+ element = { < ProtectedRoute element = { < ExitSurvey /> } /> }
100100 />
101101 < Route
102102 path = "/success-story"
103- element = { < SuccessStory /> }
103+ element = { < ProtectedRoute element = { < SuccessStory /> } /> }
104104 />
105105 < Route
106106 path = "/settings"
@@ -112,23 +112,23 @@ const App = () => {
112112 />
113113 < Route
114114 path = "/client-interview-screening"
115- element = { < ClientInterviewScreening /> }
115+ element = { < ProtectedRoute element = { < ClientInterviewScreening /> } /> }
116116 />
117117 < Route
118118 path = "/monthly-statistics"
119119 element = { < ProtectedRoute element = { < CaseManagerMonthlyStats /> } /> }
120120 />
121121 < Route
122122 path = "/forms-hub"
123- element = { < FormsHub /> }
123+ element = { < ProtectedRoute element = { < FormsHub /> } /> }
124124 />
125125 < Route
126126 path = "/start-form"
127- element = { < StartForms /> }
127+ element = { < ProtectedRoute element = { < StartForms /> } /> }
128128 />
129129 < Route
130130 path = "/admin-client-list"
131- element = { < AdminClientList /> }
131+ element = { < ProtectedRoute element = { < AdminClientList /> } /> }
132132 />
133133 < Route
134134 path = "/accounts"
@@ -141,17 +141,17 @@ const App = () => {
141141 />
142142 < Route
143143 path = "/clientlist"
144- element = { < ClientList /> }
144+ element = { < ProtectedRoute element = { < ClientList /> } /> }
145145 />
146146
147147 < Route
148148 path = "/clientdata"
149- element = { < ClientData /> }
149+ element = { < ProtectedRoute element = { < ClientData /> } /> }
150150 />
151151
152152 < Route
153153 path = "/donations"
154- element = { < Donations /> }
154+ element = { < ProtectedRoute element = { < Donations /> } /> }
155155 />
156156 < Route
157157 path = "/volunteer-tracking"
@@ -163,47 +163,47 @@ const App = () => {
163163 />
164164 < Route
165165 path = "/ViewClient/:id"
166- element = { < ViewPage /> }
166+ element = { < ProtectedRoute element = { < ViewPage /> } /> }
167167 />
168168 < Route
169169 path = "/casemanager"
170- element = { < CaseManager /> }
170+ element = { < ProtectedRoute element = { < CaseManager /> } /> }
171171 />
172172 < Route
173173 path = "/random-client-survey"
174- element = { < RandomClientSurvey /> }
174+ element = { < ProtectedRoute element = { < RandomClientSurvey /> } /> }
175175 />
176176 < Route
177- path = "/frontDesk"
178- element = { < FrontDeskMonthlyStats /> }
177+ path = "/frontDesk"
178+ element = { < ProtectedRoute element = { < FrontDeskMonthlyStats /> } /> }
179179 />
180180 < Route
181181 path = "/intakeStats"
182- element = { < IntakeStats /> }
182+ element = { < ProtectedRoute element = { < IntakeStats /> } /> }
183183 />
184184 < Route
185185 path = "/personal"
186- element = { < PersonalInformation hidden = { false } /> }
186+ element = { < ProtectedRoute element = { < PersonalInformation hidden = { false } /> } /> }
187187 />
188188 < Route
189189 path = "/financial"
190- element = { < FinancialInformation hidden = { false } /> }
190+ element = { < ProtectedRoute element = { < FinancialInformation hidden = { false } /> } /> }
191191 />
192192 < Route
193193 path = "/health"
194- element = { < HealthSocialInformation hidden = { false } /> }
194+ element = { < ProtectedRoute element = { < HealthSocialInformation hidden = { false } /> } /> }
195195 />
196196 < Route
197197 path = "/additional"
198- element = { < AdditionalInformation hidden = { false } /> }
198+ element = { < ProtectedRoute element = { < AdditionalInformation hidden = { false } /> } /> }
199199 />
200200 < Route
201201 path = "/review"
202- element = { < ReviewInformation /> }
202+ element = { < ProtectedRoute element = { < ReviewInformation /> } /> }
203203 />
204204 < Route
205205 path = "/success"
206- element = { < Success /> }
206+ element = { < ProtectedRoute element = { < Success /> } /> }
207207 />
208208 < Route path = "/playground" element = { < Playground /> } />
209209 < Route
0 commit comments