feat: complete admin panel major functionalities including responsive layout, recharts, custom modals, inline editing, and loading states
This commit is contained in:
1 parent
ee041d4e52
commit
a7ebb8d792
33 files changed
+1311
-173
No files matched your search
@@ -20,8 +20,8 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
|
||||
const [couponStatus, setCouponStatus] = useState<"idle" | "success" | "error">("idle");
|
||||
const [deleteConfirmId, setDeleteConfirmId] = useState<string | null>(null);
|
||||
|
||||
const handleApplyCoupon = () => {
|
||||
const success = applyCoupon(couponCode);
|
||||
const handleApplyCoupon = async () => {
|
||||
const success = await applyCoupon(couponCode);
|
||||
if (success) {
|
||||
setCouponStatus("success");
|
||||
setTimeout(() => setCouponStatus("idle"), 3000);
|
||||
|
||||
@@ -594,7 +594,7 @@ export default function PetProfile({ initialView, advisorNeed }: {
|
||||
<div className="flex items-center gap-2 text-[10px] font-black text-medical-gray-400 uppercase tracking-widest">
|
||||
<span className="cursor-pointer hover:text-canina-blue" onClick={() => setView("index")}>همدمهای من</span>
|
||||
<ChevronLeft className="w-3 h-3" />
|
||||
<span className="text-canina-blue">پرونده سلامت {activePet.name}</span>
|
||||
<span className="text-canina-blue">پرونده سلامت {activePet?.name}</span>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3">
|
||||
|
||||
Reference in new issue
Block a user