Skip to content

Commit db2fe61

Browse files
committed
Refactor App component to enable ProtectedRoute for enhanced route security
- Wrapped HomePage, AppContent, and ProjectPage in ProtectedRoute to ensure proper access control. - Removed commented-out code for cleaner implementation.
1 parent 7893484 commit db2fe61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/App.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,19 @@ function App() {
9696
<Routes>
9797
<Route path="/auth" element={<AuthPage />} />
9898
<Route path="/" element={
99-
// <ProtectedRoute>
99+
<ProtectedRoute>
100100
<HomePage />
101-
// </ProtectedRoute>
101+
</ProtectedRoute>
102102
} />
103103
<Route path="/mml" element={
104-
// <ProtectedRoute>
104+
<ProtectedRoute>
105105
<AppContent />
106-
// </ProtectedRoute>
106+
</ProtectedRoute>
107107
} />
108108
<Route path="/project" element={
109-
// <ProtectedRoute>
109+
<ProtectedRoute>
110110
<ProjectPage />
111-
// </ProtectedRoute>
111+
</ProtectedRoute>
112112
} />
113113
</Routes>
114114
</AuthProvider>

0 commit comments

Comments
 (0)