-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
27 lines (25 loc) · 1.07 KB
/
App.jsx
File metadata and controls
27 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react'
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import Navbar from './components/Navbar'
import WelcomePage from './components/WelcomePage'
import AboutPage from './components/AboutPage'
import ContactPage from './components/ContactPage'
import AdminDashboard from './components/Dashboard/AdminDashboard'
import DonorDashboard from './components/Dashboard/DonorDashboard'
import RecipientDashboard from './components/Dashboard/RecipientDashboard'
import LogisticsDashboard from './components/Dashboard/LogisticsDashboard'
const App = () => (
<Router>
<Navbar />
<Routes>
<Route path="/" element={<WelcomePage />} />
<Route path="/about" element={<AboutPage />} />
<Route path="/contact" element={<ContactPage />} />
<Route path="/admin" element={<AdminDashboard />} />
<Route path="/donor" element={<DonorDashboard />} />
<Route path="/recipient" element={<RecipientDashboard />} />
<Route path="/logistics" element={<LogisticsDashboard />} />
</Routes>
</Router>
)
export default App