diff --git a/assets/admin/pages/MyPatientsPage.tsx b/assets/admin/pages/MyPatientsPage.tsx
index 9f72787f..cf837274 100644
--- a/assets/admin/pages/MyPatientsPage.tsx
+++ b/assets/admin/pages/MyPatientsPage.tsx
@@ -9,7 +9,10 @@ import {
PlusIcon,
Squares2X2Icon,
UserPlusIcon,
+ UserIcon,
UsersIcon,
+ EllipsisHorizontalIcon,
+ EyeIcon,
} from "@heroicons/react/24/outline";
import { zodResolver } from "@hookform/resolvers/zod";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
@@ -1585,17 +1588,16 @@ function MyPatientsPageInner() {
);
}
-function patientAvatar(name: string, size = 28) {
+function patientAvatar(_name: string, size = 32) {
return (
- {(name === "—" ? "؟" : name).charAt(0)}
+
);
}
@@ -1613,32 +1615,74 @@ function PatientCard({
}) {
const name = getPatientName(record);
const phone = getPatientPhone(record);
+ const [menu, setMenu] = React.useState(false);
const infoRow = (label: string, value: React.ReactNode) => (
-
+
{label}:
- {value}
+ {value}
);
+ const menuItemStyle: React.CSSProperties = {
+ display: "flex", alignItems: "center", justifyContent: "flex-end", gap: 8, width: "100%",
+ padding: "8px 10px", borderRadius: 8, border: "none", cursor: "pointer",
+ background: "transparent", color: "var(--text-2)", fontSize: 13, fontFamily: "inherit", whiteSpace: "nowrap",
+ };
+
return (
-
-
···
-
-
{name}
- {patientAvatar(name)}
+
+
+
+ {name}
+ {patientAvatar(name, 32)}
+ {menu && (
+ <>
+
{ e.stopPropagation(); setMenu(false); }} />
+
e.stopPropagation()}
+ >
+
+
+
+ >
+ )}
+
+
+
{infoRow("شماره پرونده", fileNumber(record))}
- {infoRow("موبایل", phone)}
-
+ {infoRow("تلفن", phone)}
+
+
+
+
برچسبها:
-
—
+
+ افزودن
+
);