Skip to content
Open

Disha #178

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 120 additions & 26 deletions client/src/routes/routes.jsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,117 @@
// import App from "../App";
// import { createBrowserRouter } from 'react-router-dom';
// import HomePage from "../pages/Home";
// import About from "../pages/About";
// import Blog from "../pages/Blog";
// import ContactUs from "../pages/ContactUs";
// import News from "../pages/News";
// import Contributors from "../pages/Contributors";
// import VideoRoom from "../pages/VideoRoom";
// import Signin from "../pages/SignIn";
// import Registration from "../pages/Registration";
// import NotFoundPage from "../pages/NotFoundPage";
// import CareCoPilot from "../pages/CareCoPilot";
// import VaccineReminder from "../pages/VaccineReminder";
// import PersonalisedLearningHub from "../pages/LearningHub";
// import DoctorDetails from "../pages/DoctorDetails";
// import LearningHub from "../pages/LearningHub";
// import consultationPage from "../pages/consult";

// const router = createBrowserRouter([
// {
// path: "/",
// element: <App />,
// children: [
// {
// path: "",
// element: <HomePage />,
// },
// {
// path: "about",
// element: <About />,
// },
// {
// path: "blog",
// element: <Blog />,
// },
// {
// path: "contactus",
// element: <ContactUs />,
// },
// {
// path: "news",
// element: <News />,
// },
// {
// path: "contributors",
// element: <Contributors />,
// },
// {
// path: "consultation",
// element: <consultationPage />,
// children: [
// {
// path: "doctordetail/:id",
// element: <DoctorDetails />,
// },
// ],
// },
// {
// path: "learning-hub",
// element: <LearningHub />,
// },
// {
// path: "vaccineReminder",
// element: <VaccineReminder />,
// },
// {
// {
// path: "care-co-pilot",
// element: <CareCoPilot />,
// },
// {
// path: "*",
// element: <NotFoundPage />,
// handle: { noLayout: true },
// }

// },
// ],
// },
// {
// path: "/registration",
// element: <Registration />,
// },
// {
// path: "/signin",
// element: <Signin />,
// },
// {
// path: "room/:roomId",
// element: <VideoRoom />,
// },
// ]);
// export default router;



import App from "../App";
import { createBrowserRouter } from 'react-router-dom';
import { createBrowserRouter } from "react-router-dom";
import HomePage from "../pages/Home";
import About from "../pages/About";
import Blog from "../pages/Blog";
import ContactUs from "../pages/ContactUs";
import News from "../pages/News";
import Contributors from "../pages/Contributors";
import VideoRoom from "../pages/VideoRoom";
import Signin from "../pages/SignIn";
import Registration from "../pages/Registration";
import NotFoundPage from "../pages/NotFoundPage";
import CareCoPilot from "../pages/CareCoPilot";
import VaccineReminder from "../pages/VaccineReminder";
import PersonalisedLearningHub from "../pages/LearningHub";
import DoctorDetails from "../pages/DoctorDetails";
import About from "../pages/About";
import Blog from "../pages/Blog";
import ContactUs from "../pages/ContactUs";
import News from "../pages/News";
import Contributors from "../pages/Contributors";
import VideoRoom from "../pages/VideoRoom";
import Signin from "../pages/SignIn";
import Registration from "../pages/Registration";
import NotFoundPage from "../pages/NotFoundPage";
import CareCoPilot from "../pages/CareCoPilot";
import VaccineReminder from "../pages/VaccineReminder";
import LearningHub from "../pages/LearningHub";
import consultationPage from "../pages/consult";
import DoctorDetails from "../pages/DoctorDetails";
import consultationPage from "../pages/consult";

const router = createBrowserRouter([
{
Expand Down Expand Up @@ -65,16 +161,13 @@ const router = createBrowserRouter([
element: <VaccineReminder />,
},
{
{
path: "care-co-pilot",
element: <CareCoPilot />,
},
{
path: "*",
element: <NotFoundPage />,
handle: { noLayout: true },
}

path: "care-co-pilot",
element: <CareCoPilot />,
},
{
path: "*",
element: <NotFoundPage />,
handle: { noLayout: true },
},
],
},
Expand All @@ -91,4 +184,5 @@ const router = createBrowserRouter([
element: <VideoRoom />,
},
]);
export default router;

export default router;
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.