link to auth
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-11 12:15:08 +03:30
parent 5976e8ea44
commit 71238dcd75
5 changed files with 87 additions and 32 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
import { useCart } from "@/app/[name]/(Main)/cart/hook/useCart";
import MinusIcon from "@/components/icons/MinusIcon";
import PlusIcon from "@/components/icons/PlusIcon";
import { toast } from "@/components/Toast";
import { toast, toastLoginRequired } from "@/components/Toast";
import { getToken } from "@/lib/api/func";
import { ef } from "@/lib/helpers/utfNumbers";
import { motion } from "framer-motion";
@@ -52,7 +52,7 @@ function FoodPage({}: Props) {
const token = await getToken();
if (!token || !isSuccess) {
toast("ابتدا لاگین کنید", "error");
toastLoginRequired(() => router.push(`/${name}/auth`), "error");
return;
}