forked from gauravsingh1281/Rentalog.in--Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
41 lines (38 loc) · 2.09 KB
/
App.jsx
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
40
41
import { Route, Routes } from "react-router-dom";
import "./App.css";
import { Home, Login, Registration, Dashboard } from "./pages";
import AddNewRental from "./components/dashboard-components/AddNewRental/AddNewRental";
import SearchRental from "./components/dashboard-components/SearchRental-section/SearchRental";
import RenterDetails from "./components/dashboard-components/RenterDetails/RenterDetails";
import PaymentsRecord from "./components/dashboard-components/PaymentsRecord/PaymentsRecord";
import TotalRentCollected from "./components/dashboard-components/TotalRentCollected/TotalRentCollected";
import PropertyListing from "./components/dashboard-components/PropertyListing/PropertyListing";
import ListedProperty from "./components/dashboard-components/ListedProperty/ListedProperty";
import CreateNewRental from "./components/dashboard-components/CreateNewRental/CreateNewRental";
import Contributors from "./components/Contributors-page/Contributors";
import ForgotPassword from "./pages/ForgotPassword";
const App = () => {
return (
<Routes>
<Route path="/" element={<Home />} />
<Route path="/login" element={<Login />} />
<Route path="/home" element={<Home />} />
<Route path="/forgot" element={<ForgotPassword/>}/>
<Route path="/register" element={<Registration />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/dashboard/searchrenter" element={<SearchRental />} />
<Route path="/dashboard/createnewrenter" element={<CreateNewRental />} />
<Route path="/dashboard/addnewrenter" element={<AddNewRental />} />
<Route path="/dashboard/renterdetails" element={<RenterDetails />} />
<Route path="/dashboard/paymentsrecord" element={<PaymentsRecord />} />
<Route path="/Contributors" element={<Contributors />} />
<Route
path="/dashboard/totalrentcollected"
element={<TotalRentCollected />}
/>
<Route path="/dashboard/propertylisting" element={<PropertyListing />} />
<Route path="/dashboard/listedproperty" element={<ListedProperty />} />
</Routes>
);
};
export default App;