From 2970e7fcf57831f45480dbee7353870e6c2469db Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Mon, 18 May 2026 21:29:43 +0200 Subject: [PATCH] feat(report): PractitionerForm with required name + optional fields --- src/components/report/PractitionerForm.tsx | 34 ++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/components/report/PractitionerForm.tsx b/src/components/report/PractitionerForm.tsx index ffadcaca..3a6a5735 100644 --- a/src/components/report/PractitionerForm.tsx +++ b/src/components/report/PractitionerForm.tsx @@ -1,3 +1,33 @@ -export default function PractitionerForm() { - return
PractitionerForm placeholder
+import type { Practitioner } from '@/domain/schema/practitioner' +import Label from '@/components/ui/Label' +import Input from '@/components/ui/Input' + +export interface PractitionerFormProps { + value: Practitioner + onChange: (next: Practitioner) => void +} + +export default function PractitionerForm({ value, onChange }: PractitionerFormProps) { + const set = (patch: Partial) => onChange({ ...value, ...patch }) + return ( +
+ Praticien +
+ + set({ name: e.target.value })} /> +
+
+ + set({ cabinet: e.target.value || undefined })} /> +
+
+ + set({ contact: e.target.value || undefined })} /> +
+
+ + set({ siret: e.target.value || undefined })} /> +
+
+ ) }