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 -3
View File
@@ -14,7 +14,7 @@ import { useCart } from '@/app/[name]/(Main)/cart/hook/useCart';
import { Building } from 'iconsax-react';
import clsx from 'clsx';
import { useGetProfile } from '@/app/[name]/(Profile)/profile/hooks/userProfileData';
import { toast } from '../Toast';
import { toastLoginRequired } from '../Toast';
type BottomNavBarProps = {
onPagerClick?: () => void;
@@ -49,8 +49,7 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
router.push(`/${name}/favorite`);
} else {
e.stopPropagation();
toast('ابتدا لاگین کنید', 'error');
router.replace(`/${name}/auth`);
toastLoginRequired(() => router.push(`/${name}/auth`), 'error');
}
}