2024-08-28 09:33:00 +00:00
|
|
|
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
2024-09-15 08:11:03 +00:00
|
|
|
import { ToastContainer } from "react-toastify";
|
2024-08-28 09:33:00 +00:00
|
|
|
import Home from "./components/Home";
|
2024-08-28 14:34:35 +00:00
|
|
|
import About from "./components/About";
|
|
|
|
import Contact from "./components/Contact";
|
2024-08-31 05:04:34 +00:00
|
|
|
import Register from "./components/Register";
|
2024-08-31 07:57:18 +00:00
|
|
|
import Login from "./components/Login";
|
2024-09-06 15:02:20 +00:00
|
|
|
import Dashboard from "./components/Dashboard";
|
|
|
|
import PrivateRoute from "./components/PrivateRoute";
|
2024-09-07 14:47:02 +00:00
|
|
|
import VerifyUser from "./components/EmailVerify";
|
2024-09-08 12:30:09 +00:00
|
|
|
import ForgotPassword from "./components/ForgotPassword";
|
|
|
|
import ResetPassword from "./components/ResetPassword";
|
2024-09-16 15:03:26 +00:00
|
|
|
// import Addproperty from "./components/Addproperty";
|
2024-09-15 08:11:03 +00:00
|
|
|
import Registrationsuccess from "./components/Registrationsuccess";
|
2024-09-16 15:03:26 +00:00
|
|
|
import PropertyView from "./components/PropertyView";
|
2024-08-26 14:03:54 +00:00
|
|
|
|
2024-08-28 09:33:00 +00:00
|
|
|
const App = () => {
|
2024-08-26 14:03:54 +00:00
|
|
|
return (
|
2024-08-28 09:33:00 +00:00
|
|
|
<BrowserRouter>
|
2024-09-15 08:11:03 +00:00
|
|
|
<ToastContainer />
|
2024-08-28 09:33:00 +00:00
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={<Home />}></Route>
|
2024-08-28 14:34:35 +00:00
|
|
|
<Route path="/about" element={<About />}></Route>
|
|
|
|
<Route path="/contact" element={<Contact/>}></Route>
|
2024-08-31 05:04:34 +00:00
|
|
|
<Route path="/register" element={<Register/>}></Route>
|
2024-09-15 08:11:03 +00:00
|
|
|
|
|
|
|
<Route path="/registrationsuccess" element={<PrivateRoute><Registrationsuccess/></PrivateRoute>}></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-31 07:57:18 +00:00
|
|
|
<Route path="/login" element={<Login/>}></Route>
|
2024-09-06 15:02:20 +00:00
|
|
|
<Route
|
|
|
|
path="/dashboard"
|
|
|
|
element={
|
|
|
|
<PrivateRoute>
|
|
|
|
<Dashboard />
|
|
|
|
</PrivateRoute>
|
|
|
|
}
|
|
|
|
/>
|
2024-09-07 14:47:02 +00:00
|
|
|
<Route path="/users/:id/verify/:token" element={<VerifyUser />} />
|
2024-09-08 12:30:09 +00:00
|
|
|
|
|
|
|
<Route path="/forgotpassword" element={<ForgotPassword />}></Route>
|
|
|
|
|
|
|
|
<Route
|
|
|
|
path="/users/resetpassword/:userId/:token"
|
|
|
|
element={<ResetPassword />}
|
|
|
|
/>
|
2024-09-08 07:41:12 +00:00
|
|
|
|
2024-09-16 10:55:17 +00:00
|
|
|
{/* <Route path="/addproperty" element={ <PrivateRoute><Addproperty /></PrivateRoute>}></Route> */}
|
2024-09-11 17:14:28 +00:00
|
|
|
|
2024-09-16 15:03:26 +00:00
|
|
|
<Route path="/property/:id" element={<PropertyView />} />
|
|
|
|
|
|
|
|
|
2024-09-08 08:01:14 +00:00
|
|
|
|
2024-09-08 07:41:12 +00:00
|
|
|
|
2024-09-12 08:11:07 +00:00
|
|
|
|
2024-08-28 09:33:00 +00:00
|
|
|
</Routes>
|
|
|
|
</BrowserRouter>
|
2024-08-26 14:03:54 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-08-28 09:33:00 +00:00
|
|
|
export default App
|