feat: implement filtered and paginated doctor appointments panel with status filtering
This commit is contained in:
@@ -77,6 +77,8 @@ export interface TauriDashboardViewProps {
|
||||
/** «میزان درآمد» series (revenue_by_day) */
|
||||
incomeLine: ChartPoint[];
|
||||
appointments: ApptRow[];
|
||||
/** جایگزین جدول ساده — برای نمایش نسخهٔ فیلتردار/قابلویرایش. */
|
||||
appointmentsSlot?: React.ReactNode;
|
||||
loading: boolean;
|
||||
formatNumber: (n: number) => string;
|
||||
formatRial: (rial: number) => string;
|
||||
@@ -97,6 +99,7 @@ export function TauriDashboardView({
|
||||
patientBars,
|
||||
incomeLine,
|
||||
appointments,
|
||||
appointmentsSlot,
|
||||
loading,
|
||||
formatNumber,
|
||||
formatRial,
|
||||
@@ -152,7 +155,8 @@ export function TauriDashboardView({
|
||||
</Link>
|
||||
</div>
|
||||
<div className="px-0 md:px-[24px] pb-[16px]">
|
||||
<NewAppointmentsTable rows={appointments} loading={loading} />
|
||||
{/* والد میتواند نسخهٔ فیلتردار را جای جدول ساده بنشاند. */}
|
||||
{appointmentsSlot ?? <NewAppointmentsTable rows={appointments} loading={loading} />}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user