feat: enhance doctor and clinic components with doctorTitle helper and improve rendering logic
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user