refactor: update terminology from 'expertise' to 'specialties' in Head components and improve phone number display in Form component

This commit is contained in:
hamed
2025-11-18 15:47:24 +03:30
parent 2894da3c69
commit 0d547b91bc
3 changed files with 9 additions and 6 deletions
+5 -2
View File
@@ -24,8 +24,11 @@ function Form({ changeData, insurance, supplementaryInsurance, data, isForAnothe
className="grid mt-[12px] sm:mt-[14px] md:mt-[17px] lg:mt-[20px] items-start
justify-center gap-x-[24px] gap-y-[12px] md:gap-y-[14px] lg:gap-y-[16px] grid-cols-1 sm:grid-cols-2"
>
<Content title="شماره موبایل" isConfirmed={isForAnother ? false : true}>
<EditField changeData={changeData} data={data?.phone} name="phone" error={errors?.phone} />
<Content title="شماره موبایل" isConfirmed={true}>
<div className="flex items-center justify-between px-[14px] py-[12.5px] border border-[#D7D7D7] rounded-lg bg-[#F5F5F5]">
<span className="text-[#3B3B3B]">{data?.phone?.value}</span>
<span className="text-[#4CAF50] text-[14px]">تایید شده</span>
</div>
</Content>
<Content title="کد ملی">
<EditField
+2 -2
View File
@@ -4,8 +4,8 @@ function Head({ doctor }) {
// تبدیل img array به string
const doctorImage = doctor?.img?.[0]?.url || "/default-doctor.jpg";
// تبدیل expertise array به string
const expertiseText = doctor?.expertise
// تبدیل specialties array به string
const expertiseText = doctor?.specialties
?.map((exp) => exp.name)
.join("، ") || "";
+2 -2
View File
@@ -4,8 +4,8 @@ function Head({ doctor }) {
// تبدیل img array به string
const doctorImage = doctor?.img?.[0]?.url || "/default-doctor.jpg";
// تبدیل expertise array به string
const expertiseText = doctor?.expertise
// تبدیل specialties array به string
const expertiseText = doctor?.specialties
?.map((exp) => exp.name)
.join("، ") || "";