From e5dac50e6f37aec0c6a0ad6eaf286d1797bc5d74 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 23 Apr 2025 12:21:11 +0330 Subject: [PATCH] login / sign up side bar --- src/shared/SideBar.tsx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/shared/SideBar.tsx b/src/shared/SideBar.tsx index 92522a6..189fdf5 100644 --- a/src/shared/SideBar.tsx +++ b/src/shared/SideBar.tsx @@ -7,10 +7,12 @@ import { clx } from '../helpers/utils' import Image from 'next/image' import { usePathname } from 'next/navigation' import Button from '@/components/Button' +import Link from 'next/link' +import { LOGIN_URL } from '@/config/const' const SideBar: FC = () => { - const { openSidebar, setOpenSidebar } = useSharedStore() + const { openSidebar, setOpenSidebar, isLogin } = useSharedStore() const pathname = usePathname() const isActive = (name: string) => { if (pathname === '/' && name === 'home') { @@ -100,11 +102,17 @@ const SideBar: FC = () => { -
-
+ { + !isLogin && +
+ +
+ + }