From 0d547b91bc18ddb6d70740d0ba73815a5ed3a047 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Tue, 18 Nov 2025 15:47:24 +0330 Subject: [PATCH] refactor: update terminology from 'expertise' to 'specialties' in Head components and improve phone number display in Form component --- components/appointment/detail/Form.js | 7 +++++-- components/appointment/information/Head.js | 4 ++-- components/appointment/location/Head.js | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/components/appointment/detail/Form.js b/components/appointment/detail/Form.js index fed3126..9b988bf 100644 --- a/components/appointment/detail/Form.js +++ b/components/appointment/detail/Form.js @@ -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" > - - + +
+ {data?.phone?.value} + تایید شده +
exp.name) .join("، ") || ""; diff --git a/components/appointment/location/Head.js b/components/appointment/location/Head.js index a31fa6f..a385bd8 100644 --- a/components/appointment/location/Head.js +++ b/components/appointment/location/Head.js @@ -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("، ") || "";