From 4fa360dc8439d0d6356908ba8c022ae0e493651a Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 17 Dec 2025 14:48:53 +0330 Subject: [PATCH] add logo --- src/components/menu/SideMenu.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/menu/SideMenu.tsx b/src/components/menu/SideMenu.tsx index 13cc2f6..f6b4973 100644 --- a/src/components/menu/SideMenu.tsx +++ b/src/components/menu/SideMenu.tsx @@ -16,6 +16,8 @@ import Modal from '../utils/Modal'; import LogoutPrompt from '@/features/general/LogoutPrompt'; import useToggle from '@/hooks/helpers/useToggle'; import { useAuthStore } from '@/zustand/authStore'; +import { useGetAbout } from '@/app/[name]/(Main)/about/hooks/useAboutData'; +import Image from 'next/image'; type MenuItemType = { href: string | undefined; @@ -69,6 +71,7 @@ const isStandalone = () => { }; function SideMenu({ menuState, toggleMenuState, nightModeState, togglenightModeState }: Props) { + const menuStateMemo = useMemo(() => menuState, [menuState]); const closeRef = useRef(null); const userIsAuthenticated = useAuthStore((state) => state.isAuthenticated); @@ -78,6 +81,7 @@ function SideMenu({ menuState, toggleMenuState, nightModeState, togglenightModeS const [deferredPrompt, setDeferredPrompt] = useState(null); const [isIOSDevice, setIsIOSDevice] = useState(false); const [isPWAInstalled, setIsPWAInstalled] = useState(false); + const { data: aboutData } = useGetAbout(); const params = useParams(); const { name } = params; @@ -140,8 +144,15 @@ function SideMenu({ menuState, toggleMenuState, nightModeState, togglenightModeS const renderMenu = () => { return (
+ { + aboutData?.data?.logo && ( +
+ logo +
+ ) + }
-
+
منو