fix(ux): harden dialogs and remove unsupported contact fallbacks
Deploy Canina / deploy (push) Successful in 2m10s

This commit is contained in:
devops committed 2026-10-17 05:52:02 +00:00
1 parent 86cfa4b3c8
commit 26f5f68708
6 files changed
+42 -21

No files matched your search

@@ -14,8 +14,9 @@ export default function MaintenancePage() {
);
const badge = getText("maintenance_badge", "سامانه در حال به‌روزرسانی و ارتقا");
const eta = getText("maintenance_eta", "زمان تقریبی بازگشایی: کمتر از ۲ ساعت آینده");
const phone = getText("contact_phone", "");
const phoneLink = getText("contact_phone_link", "");
const phone = getText("contact_phone", "").trim();
const configuredPhoneLink = getText("contact_phone_link", "").trim();
const phoneLink = configuredPhoneLink || (phone ? `tel:${phone.replace(/[^0-9+]/g, "")}` : "");
return (
<div className="min-h-screen bg-medical-gray-900 text-white flex flex-col items-center justify-center p-6 text-center font-vazir relative overflow-hidden" dir="rtl">
@@ -52,15 +53,17 @@ export default function MaintenancePage() {
</div>
)}
<div className="pt-2 flex flex-col sm:flex-row items-center justify-center gap-4">
<a
href={phoneLink}
{phone && phoneLink && (
<div className="pt-2 flex flex-col sm:flex-row items-center justify-center gap-4">
<a
href={phoneLink}
className="w-full sm:w-auto px-6 py-3.5 bg-canina-blue hover:bg-canina-dark text-white font-black text-xs rounded-xl flex items-center justify-center gap-2 shadow-lg transition-all"
>
<Phone className="w-4 h-4" />
<span>پشتیبانی اضطراری: {phone}</span>
</a>
</div>
</a>
</div>
)}
</div>
<div className="absolute bottom-6 text-xs text-medical-gray-500 font-bold flex items-center gap-2">