Skip to content

Commit 89fa07b

Browse files
Merge pull request #9 from ChangePlusPlusVandy/setup/dev-setup
frontend fixes
2 parents d293be0 + 473485b commit 89fa07b

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

frontend/src/App.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { useState } from 'react';
22
import HomePage from './pages/Home';
33

44
function App() {
5-
6-
return (
7-
<HomePage/>
8-
)
9-
5+
return <HomePage />;
106
}
117

128
export default App;

frontend/src/components/ProtectedRoute.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ interface ProtectedRouteProps {
55
}
66

77
const ProtectedRoute = ({ children }: ProtectedRouteProps) => {
8-
return (
9-
<>{children}</>
10-
)};
8+
return <>{children}</>;
9+
};
1110

1211
export default ProtectedRoute;

frontend/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import "tailwindcss";
1+
@import 'tailwindcss';

frontend/src/routes/AppRoutes.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,40 @@ import OrganizationManagement from '../pages/Admin/OrganizationManagement';
1515
const 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 />

0 commit comments

Comments
 (0)