diff --git a/src/app/(panels)/suite/doctor/patients/page.jsx b/src/app/(panels)/suite/doctor/patients/page.jsx index 202f8fa..1912cdc 100644 --- a/src/app/(panels)/suite/doctor/patients/page.jsx +++ b/src/app/(panels)/suite/doctor/patients/page.jsx @@ -7,13 +7,11 @@ import { useRouter } from "next/navigation"; import axios from "axios"; import { useUser } from "@clerk/nextjs"; -import { CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { ChevronDown } from "lucide-react"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible"; import { PersonForm } from "./PatientForm"; -import { Card } from "@/components/ui/card"; import { faker } from "@faker-js/faker"; @@ -72,32 +70,28 @@ export default function PatientsDOC() {

Patients

- {userData && userData.role === 'caregiver' && ( -
-
- {finalPatients.map(patient => ( - -
-
-

{patient.name}

-

Age: {patient.age}

-

Last Checkup: {new Date(patient.lastCheckup).toLocaleDateString()}

-
- - - -
- - - -
- ))} -
-
- )} +
+ {finalPatients.map(patient => ( + +
+
+

{patient.name}

+

Age: {patient.age}

+

Last Checkup: {new Date(patient.lastCheckup).toLocaleDateString()}

+
+ + + +
+ + + +
+ ))} +
)