diff --git a/app/component/ItemDoctor.js b/app/component/ItemDoctor.js index 40c7759..129aaac 100644 --- a/app/component/ItemDoctor.js +++ b/app/component/ItemDoctor.js @@ -89,9 +89,7 @@ function ItemDoctor({ doctor, loading, setDoctors }) { : "bg-[rgba(211,_47,_47,_0.04)] text-[#D32F2F]" }`} > - {doctor?.free_turn - ? `اولین نوبت آزاد: ${doctor?.free_turn}` - : "نوبت ندارد"} + {doctor?.free_turn}
{/* Arrow */} diff --git a/components/doctor/poster/Telefon.js b/components/doctor/poster/Telefon.js index e975ad4..0fb2a56 100644 --- a/components/doctor/poster/Telefon.js +++ b/components/doctor/poster/Telefon.js @@ -2,7 +2,9 @@ import TelefonPoster from "@/components/icons/TelefonPoster"; function Telefon({ data }) { return ( -تلفن:
@@ -10,9 +12,20 @@ function Telefon({ data }) {{data?.address[0]?.phone}
- {/*- {data?.address[0]?.phone} - {data?.address[0]?.phone} -
*/} + {data?.address && + data?.address.length > 1 && + data?.address.map( + (item, idx) => + idx !== 0 && ( + + {item?.phone} - + + ) + )}