feat: complete all remaining backlog tasks across backend, admin panel, and customer application
This commit is contained in:
1 parent
b6b2d20b16
commit
5f790a60a9
3 files changed
+39
-20
No files matched your search
@@ -4,6 +4,7 @@ import { motion, AnimatePresence } from "motion/react";
|
||||
import { X, CreditCard, Sparkles, CheckCircle2, TrendingUp, DollarSign } from "lucide-react";
|
||||
import { toPersian, cn } from "../lib/utils";
|
||||
import { toast } from "sonner";
|
||||
import { useUserStore } from "../lib/store/userStore";
|
||||
|
||||
interface TopUpModalProps {
|
||||
isOpen: boolean;
|
||||
@@ -37,6 +38,10 @@ export default function TopUpModal({ isOpen, onClose, onConfirm }: TopUpModalPro
|
||||
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (!useUserStore.getState().isLoggedIn) {
|
||||
toast.error("جهت افزایش موجودی کیف پول لطفاً ابتدا وارد حساب کاربری خود شوید.");
|
||||
return;
|
||||
}
|
||||
const finalAmount = parseInt(amount);
|
||||
if (isNaN(finalAmount) || finalAmount < 10000) {
|
||||
toast.error("حداقل مبلغ شارژ ۱۰,۰۰۰ تومان است");
|
||||
|
||||
Reference in new issue
Block a user