This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user