refactor: enhance handling of supplementary insurance in Form and AppointmentPage components
This commit is contained in:
@@ -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="بیمه تکمیلی"
|
||||
|
||||
Reference in New Issue
Block a user