feat(privacy): drop the office phone from the public doctor page

The number is no longer part of the public API payload, so the line under each
address would have rendered a bare "تلفن:" label with nothing after it. The
address and the routing button stay — those are what a visitor came for. In the
dashboard the phone is still shown, now only when the venue actually has one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hamed
2026-08-18 16:32:02 +03:30
co-authored by Claude Opus 5
parent 45f94743fd
commit 6293c64c25
3 changed files with 24 additions and 20 deletions
@@ -120,17 +120,20 @@ function DetailLg({ appointmentData, loading }) {
</Button> </Button>
</TextLoading> </TextLoading>
</li> </li>
<TextLoading loading={loading} width={120} height={18}> {/* بعضی مطب‌ها شماره ثبت نکرده‌اند؛ «تلفن:» خالی بدتر از نبودنِ سطر است. */}
<li className="flex items-center justify-start gap-[4px]"> {appointmentData?.address?.telephone && (
<CallD /> <TextLoading loading={loading} width={120} height={18}>
<p className="text-[#616161] text-[14px] lg:text-[16px] font-normal"> <li className="flex items-center justify-start gap-[4px]">
تلفن:{" "} <CallD />
<span className="text-[#2F2F2F] text-[14px] lg:text-[16px] font-normal"> <p className="text-[#616161] text-[14px] lg:text-[16px] font-normal">
{appointmentData?.address?.telephone} تلفن:{" "}
</span> <span className="text-[#2F2F2F] text-[14px] lg:text-[16px] font-normal">
</p> {appointmentData.address.telephone}
</li> </span>
</TextLoading> </p>
</li>
</TextLoading>
)}
</ul> </ul>
{/* <Button {/* <Button
className="!px-[12px] !hidden md:!flex !mt-[24px] !py-[8px] !border !border-solid !border-[#D7D7D7] !rounded-[4px] !w-fit !items-center !justify-center !gap-[4px]" className="!px-[12px] !hidden md:!flex !mt-[24px] !py-[8px] !border !border-solid !border-[#D7D7D7] !rounded-[4px] !w-fit !items-center !justify-center !gap-[4px]"
@@ -110,11 +110,13 @@ function DetailSm({ appointmentData, loading }) {
</Button> </Button>
</TextLoading> </TextLoading>
</li> </li>
<TextLoading loading={loading} width={100} height={18}> {appointmentData?.address?.telephone && (
<p className="text-[#7E7E7E] text-[14px] font-normal mt-[12px]"> <TextLoading loading={loading} width={100} height={18}>
تلفن: <span className="text-[#616161]">{appointmentData?.address?.telephone}</span> <p className="text-[#7E7E7E] text-[14px] font-normal mt-[12px]">
</p> تلفن: <span className="text-[#616161]">{appointmentData.address.telephone}</span>
</TextLoading> </p>
</TextLoading>
)}
</ul> </ul>
<ButtonData loading={loading} onDownload={handleDownloadPDF} /> <ButtonData loading={loading} onDownload={handleDownloadPDF} />
</div> </div>
@@ -50,10 +50,9 @@ function Item({ data, bookable = true }) {
<p className="text-[#525252] text-[16px] font-normal"> <p className="text-[#525252] text-[16px] font-normal">
آدرس: {data.address} آدرس: {data.address}
</p> </p>
<div className="flex w-full items-center justify-between"> {/* شمارهٔ مطب اینجا نمی‌آید: دادهٔ عمومی نیست و API هم دیگر آن را برنمی‌گرداند.
<p className="text-[#525252] text-[16px] font-normal"> بیمار شماره را در «جزئیات نوبت شما» — بعد از گرفتن نوبت — می‌بیند. */}
تلفن: {data.telephone} <div className="flex w-full items-center justify-end">
</p>
{data?.map?.latitude && data?.map?.longitude && ( {data?.map?.latitude && data?.map?.longitude && (
<ModalOpenLocation <ModalOpenLocation
open={open} open={open}