diff --git a/src/App.js b/src/App.js index 8a91495e..1fb0c675 100644 --- a/src/App.js +++ b/src/App.js @@ -1,10 +1,10 @@ import "./App.css"; import Container from "./Components/Container"; import Footer from "./Components/Footer"; -import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import { createBrowserRouter, RouterProvider } from "react-router-dom"; import Settings from "./Components/Settings/SettingsPage"; import About_us from "./Components/footer_section/about_us/About_us"; -import BlogPage from "./Components/footer_section/BlogPage/BlogPage" +import BlogPage from "./Components/footer_section/BlogPage/BlogPage"; import FAQPage from "./Components/footer_section/FAQPage/FAQPage"; import Services from "./Components/footer_section/services/Services"; import ContactUs from "./Components/footer_section/ContactUs/contact_us"; @@ -24,42 +24,20 @@ import EmailVerification from "./Components/auth/resetPassword/EmailVerification import OTPVerification from "./Components/auth/resetPassword/OTPVerification"; import ResetPassword from "./Components/auth/resetPassword/ResetPassword"; import Freelancer from "./Components/FreeLancer/Freelancer"; +import router from "./configs/router"; +// Define the routes function App() { return ( - -
-
- - } /> - } /> - }/> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - }/> - }/> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - -