feat: enhance NewAppointmentsTable with dynamic patient record navigation and update DashboardPage tests

This commit is contained in:
hamed
2026-07-29 21:15:09 +03:30
parent 684cf1f783
commit 6ec011e3ad
3 changed files with 79 additions and 31 deletions
+1 -21
View File
@@ -839,28 +839,8 @@ function DoctorDashboard() {
currentJalaliMonth={chartPeriod.currentJalaliMonth}
/>
<div className="grid-2" style={{ marginTop: 'var(--gap)' }}>
<div style={{ marginTop: 'var(--gap)' }}>
<DoctorClinicInvitationsCard />
<div className="card card-pad">
<div className="card-title-row">
<h3 style={{ fontSize: 16 }}>کلینیکهای من</h3>
</div>
{!d?.clinics.length ? (
<p className="muted" style={{ textAlign: 'center', padding: '32px 0', fontSize: 13.5 }}>عضو کلینیکی نیستید</p>
) : (
<div style={{ display: 'flex', flexDirection: 'column' }}>
{d.clinics.map((c, i) => (
<div key={c.uuid} style={{ display: 'flex', alignItems: 'center', gap: 11, padding: '10px 0', borderBottom: i < d.clinics.length - 1 ? '1px solid var(--border)' : 'none' }}>
<AvatarEl initials={c.name.slice(0, 1)} hue={205} size="sm" />
<div style={{ flex: 1 }}>
<b style={{ fontSize: 13.5 }}>{c.name}</b>
</div>
<span className="badge green"><span className="bdot" />فعال</span>
</div>
))}
</div>
)}
</div>
</div>
</div>
);