estatesfunding/ef-ui/src/App.jsx

77 lines
2.8 KiB
React
Raw Normal View History

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-09-25 14:20:59 +00:00
import SearchMysqlProperties from "./components/SearchMysqlProperties";
2024-09-19 16:26:46 +00:00
import Services from "./components/Services";
2024-09-20 11:18:56 +00:00
import PropertyMysqlView from "./components/PropertyMysqlView";
2024-09-21 18:18:57 +00:00
import EditProperty from "./components/EditProperty";
2024-09-25 14:20:59 +00:00
import SearchProperties from "./components/SearchProperties";
2024-09-30 15:39:00 +00:00
import ProfileView from "./components/ProfileView";
2024-09-21 18:18:57 +00:00
2024-08-28 09:33:00 +00:00
const App = () => {
2024-08-26 14:03:54 +00:00
return (
2024-09-17 14:36:35 +00:00
<BrowserRouter>
<ToastContainer />
<Routes>
2024-10-14 15:51:25 +00:00
<Route path="/estateslending" element={<Home />}></Route>
2024-09-17 14:36:35 +00:00
<Route path="/about" element={<About />}></Route>
2024-09-19 16:26:46 +00:00
<Route path="/services" element={<Services />}></Route>
2024-09-17 14:36:35 +00:00
<Route path="/contact" element={<Contact />}></Route>
<Route path="/register" element={<Register />}></Route>
2024-09-15 08:11:03 +00:00
2024-09-17 14:36:35 +00:00
<Route
path="/registrationsuccess"
element={
<PrivateRoute>
<Registrationsuccess />
</PrivateRoute>
}
></Route>
2024-09-15 08:11:03 +00:00
2024-09-17 14:36:35 +00:00
<Route path="/login" element={<Login />}></Route>
<Route
2024-09-06 15:02:20 +00:00
path="/dashboard"
element={
<PrivateRoute>
<Dashboard />
</PrivateRoute>
}
/>
2024-09-17 14:36:35 +00:00
<Route path="/users/:id/verify/:token" element={<VerifyUser />} />
2024-09-16 15:03:26 +00:00
2024-09-17 14:36:35 +00:00
<Route path="/forgotpassword" element={<ForgotPassword />}></Route>
2024-09-16 15:03:26 +00:00
2024-09-17 14:36:35 +00:00
<Route
path="/users/resetpassword/:userId/:token"
element={<ResetPassword />}
/>
2024-09-08 08:01:14 +00:00
2024-09-17 14:36:35 +00:00
{/* <Route path="/addproperty" element={ <PrivateRoute><Addproperty /></PrivateRoute>}></Route> */}
2024-09-08 07:41:12 +00:00
2024-09-17 14:36:35 +00:00
<Route path="/property/:id" element={<PropertyView />} />
2024-09-20 11:18:56 +00:00
<Route path="/properties/:house_id" element={<PropertyMysqlView />} />
2024-09-25 14:20:59 +00:00
<Route path="/searchmyproperties" element={<SearchMysqlProperties />} />
<Route path="/searchproperties" element={<SearchProperties />} />
2024-09-30 15:39:00 +00:00
<Route path="/editproperty/:id" element={<PrivateRoute><EditProperty /></PrivateRoute>} />
<Route path="/profile/:userId" element={<ProfileView />} />
2024-09-19 11:35:14 +00:00
2024-09-17 14:36:35 +00:00
</Routes>
2024-08-28 09:33:00 +00:00
</BrowserRouter>
2024-09-17 14:36:35 +00:00
);
};
2024-08-26 14:03:54 +00:00
2024-09-17 14:36:35 +00:00
export default App;