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
@@ -18,7 +18,7 @@ import useToggle from '@/hooks/helpers/useToggle';
import { useGetAbout } from '@/app/[name]/(Main)/about/hooks/useAboutData';
import Image from 'next/image';
import { useGetProfile } from '@/app/[name]/(Profile)/profile/hooks/userProfileData';
import { toast } from '../Toast';
import { toast, toastLoginRequired } from '../Toast';
type MenuItemType = {
href: string | undefined;
@@ -203,7 +203,7 @@ function SideMenu({ menuState, toggleMenuState, nightModeState, togglenightModeS
const handleNotificationClick = (e: React.MouseEvent) => {
e.preventDefault();
if (!isLoggedIn) {
toast('ابتدا لاگین کنید', 'info');
toastLoginRequired(() => router.push(`/${name}/auth`), 'info');
} else {
router.push(`/${name}/notifications`);
}