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:
@@ -120,17 +120,20 @@ function DetailLg({ appointmentData, loading }) {
|
||||
</Button>
|
||||
</TextLoading>
|
||||
</li>
|
||||
<TextLoading loading={loading} width={120} height={18}>
|
||||
<li className="flex items-center justify-start gap-[4px]">
|
||||
<CallD />
|
||||
<p className="text-[#616161] text-[14px] lg:text-[16px] font-normal">
|
||||
تلفن:{" "}
|
||||
<span className="text-[#2F2F2F] text-[14px] lg:text-[16px] font-normal">
|
||||
{appointmentData?.address?.telephone}
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
</TextLoading>
|
||||
{/* بعضی مطبها شماره ثبت نکردهاند؛ «تلفن:» خالی بدتر از نبودنِ سطر است. */}
|
||||
{appointmentData?.address?.telephone && (
|
||||
<TextLoading loading={loading} width={120} height={18}>
|
||||
<li className="flex items-center justify-start gap-[4px]">
|
||||
<CallD />
|
||||
<p className="text-[#616161] text-[14px] lg:text-[16px] font-normal">
|
||||
تلفن:{" "}
|
||||
<span className="text-[#2F2F2F] text-[14px] lg:text-[16px] font-normal">
|
||||
{appointmentData.address.telephone}
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
</TextLoading>
|
||||
)}
|
||||
</ul>
|
||||
{/* <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]"
|
||||
|
||||
@@ -110,11 +110,13 @@ function DetailSm({ appointmentData, loading }) {
|
||||
</Button>
|
||||
</TextLoading>
|
||||
</li>
|
||||
<TextLoading loading={loading} width={100} height={18}>
|
||||
<p className="text-[#7E7E7E] text-[14px] font-normal mt-[12px]">
|
||||
تلفن: <span className="text-[#616161]">{appointmentData?.address?.telephone}</span>
|
||||
</p>
|
||||
</TextLoading>
|
||||
{appointmentData?.address?.telephone && (
|
||||
<TextLoading loading={loading} width={100} height={18}>
|
||||
<p className="text-[#7E7E7E] text-[14px] font-normal mt-[12px]">
|
||||
تلفن: <span className="text-[#616161]">{appointmentData.address.telephone}</span>
|
||||
</p>
|
||||
</TextLoading>
|
||||
)}
|
||||
</ul>
|
||||
<ButtonData loading={loading} onDownload={handleDownloadPDF} />
|
||||
</div>
|
||||
|
||||
@@ -50,10 +50,9 @@ function Item({ data, bookable = true }) {
|
||||
<p className="text-[#525252] text-[16px] font-normal">
|
||||
آدرس: {data.address}
|
||||
</p>
|
||||
<div className="flex w-full items-center justify-between">
|
||||
<p className="text-[#525252] text-[16px] font-normal">
|
||||
تلفن: {data.telephone}
|
||||
</p>
|
||||
{/* شمارهٔ مطب اینجا نمیآید: دادهٔ عمومی نیست و API هم دیگر آن را برنمیگرداند.
|
||||
بیمار شماره را در «جزئیات نوبت شما» — بعد از گرفتن نوبت — میبیند. */}
|
||||
<div className="flex w-full items-center justify-end">
|
||||
{data?.map?.latitude && data?.map?.longitude && (
|
||||
<ModalOpenLocation
|
||||
open={open}
|
||||
|
||||
Reference in New Issue
Block a user