fix(header): clean up prescription button navigation onClick handler
Deploy Canina / deploy (push) Successful in 2m16s

This commit is contained in:
devops committed 2026-10-18 11:35:43 +00:00
1 parent 7bca0ef335
commit 52446592e7
1 file changed
+2 -6
+2 -6
View File
@@ -253,14 +253,10 @@ export default function Header({
{isPrescriptionEnabled && (
<button
onClick={() => {
if (!isLoggedIn) {
setIsAuthModalOpen(true);
} else {
setIsPrescriptionModalOpen(true);
}
window.location.href = "/prescriptions";
}}
className="flex items-center gap-1.5 px-2.5 sm:px-3 py-2 bg-emerald-50 text-emerald-700 border border-emerald-200 hover:bg-emerald-100 rounded-xl text-[11px] sm:text-xs font-black transition-all shadow-xs cursor-pointer"
title="ثبت نسخه دامپزشک" onClick={() => window.location.href = "/prescriptions"}
title="ثبت نسخه دامپزشک"
>
<FileHeart className="w-3.5 h-3.5 sm:w-4 sm:h-4 text-emerald-600 shrink-0" />
<span className="hidden xs:inline sm:inline">ثبت نسخه دامپزشک</span>