refactor: update terminology from 'expertise' to 'specialties' in Head components and improve phone number display in Form component
This commit is contained in:
@@ -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("، ") || "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user