feat: add owner mobile information to ClinicsPage and update API to fetch owner mobile

This commit is contained in:
hamed
2026-06-13 17:39:56 +03:30
parent d50fb96542
commit 5c167b5d39
3 changed files with 13 additions and 3 deletions
+7 -1
View File
@@ -130,6 +130,7 @@ export default function ClinicsPage() {
<thead>
<tr>
<th>کلینیک</th>
<th>مالک</th>
<th>تلفن</th>
<th>پزشکان</th>
<th>وضعیت</th>
@@ -149,7 +150,7 @@ export default function ClinicsPage() {
: items.length === 0
? (
<tr>
<td colSpan={6}>
<td colSpan={7}>
<div className="empty">
<BuildingOffice2Icon style={{ width: 36, height: 36 }} />
<p>هیچ کلینیکی یافت نشد</p>
@@ -177,6 +178,11 @@ export default function ClinicsPage() {
</div>
</div>
</td>
<td>
{c.owner_mobile
? <span dir="ltr" style={{ fontSize: 13 }}>{c.owner_mobile}</span>
: <span style={{ color: 'var(--text-3)' }}></span>}
</td>
<td>{c.phone ? <span dir="ltr">{c.phone}</span> : '—'}</td>
<td>
<span className="badge blue">
+1
View File
@@ -45,6 +45,7 @@ export interface Clinic {
is_active: boolean;
doctors_count: number;
created_at: number;
owner_mobile: string | null;
}
export interface ClinicDetail {