From 6293c64c254bc37d92d13c444866edbde90ee3e9 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Tue, 18 Aug 2026 16:32:02 +0330 Subject: [PATCH] feat(privacy): drop the office phone from the public doctor page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .../sidebars/turns/isTurnsDetails/DetailLg.js | 25 +++++++++++-------- .../sidebars/turns/isTurnsDetails/DetailSm.js | 12 +++++---- .../detailDoctor/cards/locations/Item.js | 7 +++--- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js b/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js index 520e848..3f9270e 100644 --- a/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js +++ b/components/dashboard/userAccount/sidebars/turns/isTurnsDetails/DetailLg.js @@ -120,17 +120,20 @@ function DetailLg({ appointmentData, loading }) { - -
  • - -

    - تلفن:{" "} - - {appointmentData?.address?.telephone} - -

    -
  • -
    + {/* بعضی مطب‌ها شماره ثبت نکرده‌اند؛ «تلفن:» خالی بدتر از نبودنِ سطر است. */} + {appointmentData?.address?.telephone && ( + +
  • + +

    + تلفن:{" "} + + {appointmentData.address.telephone} + +

    +
  • +
    + )} {/*