-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
29 lines (27 loc) · 1.06 KB
/
App.js
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
28
29
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Header from './components/Header';
import Footer from './components/Footer';
import HomePage from './components/HomePage';
import LoginPage from './components/LoginPage';
import SignUpPage from './components/SignUpPage';
import RefferalDashboard from './components/RefferalDashboard';
import RefferalDetail from './components/RefferalDetail';
const App = () => {
return (
<Router>
<Header />
<main>
<Routes>
<Route exact path="/" element={<HomePage />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/signup" element={<SignUpPage />} />
<Route path="/dashboard" element={<RefferalDashboard />} />
<Route path="/refferal/:id" element={<RefferalDetail />} />
</Routes>
</main>
<Footer />
</Router>
);
};
export default App;