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 && +
+ +
+ + }