File tree Expand file tree Collapse file tree 4 files changed +15
-20
lines changed
Expand file tree Collapse file tree 4 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ import { useState } from 'react';
22import HomePage from './pages/Home' ;
33
44function App ( ) {
5-
6- return (
7- < HomePage />
8- )
9-
5+ return < HomePage /> ;
106}
117
128export default App ;
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ interface ProtectedRouteProps {
55}
66
77const ProtectedRoute = ( { children } : ProtectedRouteProps ) => {
8- return (
9- < > { children } </ >
10- ) } ;
8+ return < > { children } </ > ;
9+ } ;
1110
1211export default ProtectedRoute ;
Original file line number Diff line number Diff line change 1- @import " tailwindcss" ;
1+ @import ' tailwindcss' ;
Original file line number Diff line number Diff line change @@ -15,40 +15,40 @@ import OrganizationManagement from '../pages/Admin/OrganizationManagement';
1515const AppRoutes = ( ) => {
1616 return (
1717 < Routes >
18- < Route path = "/" element = { < HomePage /> } />
19- < Route path = " /about" element = { < AboutPage /> } />
20- < Route path = " /organizations" element = { < OrganizationsPage /> } />
21- < Route path = " /resources" element = { < ResourcesPage /> } />
22- < Route path = " /contact" element = { < ContactPage /> } />
23- < Route path = " /login" element = { < LoginPage /> } />
24- < Route path = " /register" element = { < RegisterPage /> } />
18+ < Route path = '/' element = { < HomePage /> } />
19+ < Route path = ' /about' element = { < AboutPage /> } />
20+ < Route path = ' /organizations' element = { < OrganizationsPage /> } />
21+ < Route path = ' /resources' element = { < ResourcesPage /> } />
22+ < Route path = ' /contact' element = { < ContactPage /> } />
23+ < Route path = ' /login' element = { < LoginPage /> } />
24+ < Route path = ' /register' element = { < RegisterPage /> } />
2525
2626 < Route
27- path = " /dashboard"
27+ path = ' /dashboard'
2828 element = {
2929 < ProtectedRoute >
3030 < DashboardPage />
3131 </ ProtectedRoute >
3232 }
3333 />
3434 < Route
35- path = " /profile"
35+ path = ' /profile'
3636 element = {
3737 < ProtectedRoute >
3838 < ProfilePage />
3939 </ ProtectedRoute >
4040 }
4141 />
4242 < Route
43- path = " /admin"
43+ path = ' /admin'
4444 element = {
4545 < ProtectedRoute >
4646 < AdminDashboard />
4747 </ ProtectedRoute >
4848 }
4949 />
5050 < Route
51- path = " /admin/organizations"
51+ path = ' /admin/organizations'
5252 element = {
5353 < ProtectedRoute >
5454 < OrganizationManagement />
You can’t perform that action at this time.
0 commit comments