feat(inventory): implement numeric stock inventory across fullstack and improve prescription UX handoff
This commit is contained in:
1 parent
e9582430e6
commit
741365f04c
13 files changed
+177
-47
No files matched your search
@@ -250,7 +250,13 @@ export default function Header({
|
||||
{/* Prescription Upload Button (Desktop & Mobile) */}
|
||||
{isPrescriptionEnabled && (
|
||||
<button
|
||||
onClick={() => setIsPrescriptionModalOpen(true)}
|
||||
onClick={() => {
|
||||
if (!isLoggedIn) {
|
||||
setIsAuthModalOpen(true);
|
||||
} else {
|
||||
setIsPrescriptionModalOpen(true);
|
||||
}
|
||||
}}
|
||||
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="ثبت نسخه دامپزشک"
|
||||
>
|
||||
@@ -545,7 +551,11 @@ export default function Header({
|
||||
type="button"
|
||||
onClick={() => {
|
||||
setIsMobileMenuOpen(false);
|
||||
setIsPrescriptionModalOpen(true);
|
||||
if (!isLoggedIn) {
|
||||
setIsAuthModalOpen(true);
|
||||
} else {
|
||||
setIsPrescriptionModalOpen(true);
|
||||
}
|
||||
}}
|
||||
className="w-full flex items-center justify-between p-3.5 bg-gradient-to-r from-emerald-500 to-teal-600 text-white rounded-2xl font-black text-xs shadow-md shadow-emerald-500/20 hover:brightness-105 transition-all cursor-pointer font-vazir"
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user