handle download poster and qrcode, fix to show timestamp, add pagination to doctors page

This commit is contained in:
ehsan
2025-10-02 02:52:26 +03:30
parent 645da72002
commit e1510b142b
21 changed files with 394 additions and 154 deletions
+3 -2
View File
@@ -4,8 +4,9 @@ import statesData from "@/data/state.json";
export function getStateInfoClient() {
if (typeof window === "undefined")
return { matchedCity: null, matchedState: null };
return { matchedCity: null, matchedState: null, fullUrl: "" };
const fullUrl = window.location.href; // کل URL
const host = window.location.host || "";
const subdomain = host.split(".")[0];
@@ -17,5 +18,5 @@ export function getStateInfoClient() {
matchedCity &&
statesData.find((state) => state.id === matchedCity.province_id);
return { matchedCity, matchedState };
return { matchedCity, matchedState, host, fullUrl };
}