feat: enhance doctor and clinic components with doctorTitle helper and improve rendering logic

This commit is contained in:
hamed
2026-07-19 16:17:24 +03:30
parent 4c8377f439
commit e8a7bdf2fc
8 changed files with 54 additions and 20 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import { doctorTitle } from "@/helper";
// Icons
import CopyBlueD from "@/components/icons/CopyBlueD";
import DownloadBlue from "@/components/icons/DownloadBlue";
@@ -121,7 +123,7 @@ function List({ hiddenRef, data, qrReady }) {
typeof window !== "undefined" ? window.location.href : "";
const getShareText = () =>
data?.name ? `معرفی ${data.name} در نوبت 724` : "معرفی پزشک در نوبت 724";
data?.name ? `معرفی ${doctorTitle(data.name)} در نوبت 724` : "معرفی پزشک در نوبت 724";
const openShareWindow = (url) => {
if (typeof window !== "undefined") {