estatesfunding/ef-ui/src/App.jsx

71 lines
2.2 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-17 14:36:35 +00:00
import SearchMysql from "./components/SearchMysql";
2024-09-19 16:26:46 +00:00
import Services from "./components/Services";
2024-08-26 14:03:54 +00:00
2024-09-19 11:35:14 +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>
<Route path="/" element={<Home />}></Route>
<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-12 08:11:07 +00:00
2024-09-17 14:36:35 +00:00
<Route path="/searchmyproperties" element={<SearchMysql />} />
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;