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
+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("، ") || "";