refactor: enhance handling of supplementary insurance in Form and AppointmentPage components

This commit is contained in:
hamed
2025-11-18 10:35:35 +03:30
parent 3268b3c51e
commit 5c98b4de3e
4 changed files with 99 additions and 15 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ function Form({ changeData, insurance, supplementaryInsurance, data, isForAnothe
error={errors?.gender}
/>
</Content>
<Content title="شماره بیمه">
<Content title="شماره بیمه (اختیاری)">
<EditField changeData={changeData} data={data?.insurance_id} name="insurance_id" error={errors?.insurance_id} />
</Content>
<Content title="نوع بیمه">
@@ -71,7 +71,7 @@ function Form({ changeData, insurance, supplementaryInsurance, data, isForAnothe
error={errors?.basic_insurance}
/>
</Content>
<Content title="بیمه تکمیلی">
<Content title="بیمه تکمیلی (اختیاری)">
<DefaultSelect
updateData={(name, val) => changeData(val, "value", name)}
label="بیمه تکمیلی"