improvement: appointments history component added to patients feature.

This commit is contained in:
2026-07-12 18:56:01 +03:30
parent 3b47aa9605
commit 1cdf853d32
12 changed files with 374 additions and 28 deletions

View File

@@ -13,6 +13,7 @@ import { CreatePatientInput, Patient } from '@/types/patient';
import { PatientSearchSelect } from '@/components/ui/patient/PatientSearchSelect';
import { CreatePatientModal } from '@/components/ui/patient/CreatePatientModal';
import { PatientSummaryCard } from '@/components/ui/patient/PatientSummaryCard';
import { PatientAppointmentHistory } from '@/components/ui/patient/PatientAppointmentHistory';
const EMPTY_PATIENT_FORM: CreatePatientInput = {
firstName: '',
@@ -154,6 +155,9 @@ export default function PatientsPage() {
<div className="xl:col-span-2 space-y-4">
<PatientSummaryCard patient={selectedPatient} />
{selectedPatient ? (
<PatientAppointmentHistory patientId={selectedPatient.id} />
) : null}
</div>
</div>
</div>