feat: update doctor display logic to prioritize display_name and enhance metadata description with address details
This commit is contained in:
@@ -39,7 +39,7 @@ function ItemDoctor({ doctor, loading, setDoctors, priority = false }) {
|
||||
<TextLoading loading={loading} width={90} height={15}>
|
||||
<Link href={`/doctor/${doctor?.uuid}`}>
|
||||
<p className="text-[#3B3B3B] text-[14px] font-bold">
|
||||
{doctor?.name}
|
||||
{doctor?.display_name || doctor?.name}
|
||||
</p>
|
||||
</Link>
|
||||
</TextLoading>
|
||||
@@ -92,13 +92,13 @@ function ItemDoctor({ doctor, loading, setDoctors, priority = false }) {
|
||||
{/* Arrow */}
|
||||
<Link
|
||||
href={`/doctor/${doctor?.uuid}`}
|
||||
aria-label={`مشاهده پروفایل ${doctor?.name || "پزشک"}`}
|
||||
aria-label={`مشاهده پروفایل ${doctor?.display_name || doctor?.name || "پزشک"}`}
|
||||
>
|
||||
<Button
|
||||
variant="contained"
|
||||
onClick={handleLoading}
|
||||
disabled={doctor?.loading}
|
||||
aria-label={`مشاهده پروفایل ${doctor?.name || "پزشک"}`}
|
||||
aria-label={`مشاهده پروفایل ${doctor?.display_name || doctor?.name || "پزشک"}`}
|
||||
className="!p-[14px] !absolute !left-4 !bottom-4 !rounded-full !w-fit"
|
||||
>
|
||||
<div className={doctor && doctor.loading ? "opacity-0" : ""}>
|
||||
|
||||
Reference in New Issue
Block a user