refactor: update terminology from 'expertise' to 'specialties' in Head components and improve phone number display in Form component
This commit is contained in:
@@ -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
|
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"
|
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}>
|
<Content title="شماره موبایل" isConfirmed={true}>
|
||||||
<EditField changeData={changeData} data={data?.phone} name="phone" error={errors?.phone} />
|
<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>
|
||||||
<Content title="کد ملی">
|
<Content title="کد ملی">
|
||||||
<EditField
|
<EditField
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ function Head({ doctor }) {
|
|||||||
// تبدیل img array به string
|
// تبدیل img array به string
|
||||||
const doctorImage = doctor?.img?.[0]?.url || "/default-doctor.jpg";
|
const doctorImage = doctor?.img?.[0]?.url || "/default-doctor.jpg";
|
||||||
|
|
||||||
// تبدیل expertise array به string
|
// تبدیل specialties array به string
|
||||||
const expertiseText = doctor?.expertise
|
const expertiseText = doctor?.specialties
|
||||||
?.map((exp) => exp.name)
|
?.map((exp) => exp.name)
|
||||||
.join("، ") || "";
|
.join("، ") || "";
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ function Head({ doctor }) {
|
|||||||
// تبدیل img array به string
|
// تبدیل img array به string
|
||||||
const doctorImage = doctor?.img?.[0]?.url || "/default-doctor.jpg";
|
const doctorImage = doctor?.img?.[0]?.url || "/default-doctor.jpg";
|
||||||
|
|
||||||
// تبدیل expertise array به string
|
// تبدیل specialties array به string
|
||||||
const expertiseText = doctor?.expertise
|
const expertiseText = doctor?.specialties
|
||||||
?.map((exp) => exp.name)
|
?.map((exp) => exp.name)
|
||||||
.join("، ") || "";
|
.join("، ") || "";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user