-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (37 loc) · 1.36 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
30
31
32
33
34
35
36
37
38
39
import React from "react";
import { Toaster } from "react-hot-toast";
import { Routes, Route } from "react-router-dom";
import Home from "./pages/Home";
import Login from "./pages/Login";
import Profile from "./pages/Profile";
import Register from "./pages/Register";
import WhatIsMentorship from "./pages/WhatIsMentorship";
import Mentors from "./pages/Mentors";
import ApplytoMentorship from "./pages/ApplytoMentorship";
import Concat from "./pages/Concat";
import NotFound from "./pages/NotFound";
import ForgotPassword from "./pages/ForgotPassword";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
function App() {
return (
<>
<Navbar />
<Toaster position="top-right" />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/register" element={<Register />} />
<Route path="/login" element={<Login />} />
<Route path="/forgotpassword" element={<ForgotPassword />} />
<Route path="/profile" element={<Profile />} />
<Route path="/whatismentorship" element={<WhatIsMentorship />} />
<Route path="/mentors" element={<Mentors />} />
<Route path="/apply" element={<ApplytoMentorship />} />
<Route path="/concat" element={<Concat />} />
<Route path="/*" element={<NotFound />} />
</Routes>
<Footer />
</>
);
}
export default App;