This commit is contained in:
hamid zarghami
2025-05-31 16:03:31 +03:30
parent 903ff643b0
commit b9e840ae71
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -12,10 +12,11 @@ import { Popover, PopoverButton, PopoverPanel } from '@headlessui/react'
import SideBarItem from './SideBarItem'
import Button from '../components/Button'
import { buildPath } from '../helpers/utils'
import { getToken } from '../config/func'
const Header: FC = () => {
const isLogin = localStorage.getItem(import.meta.env.VITE_TOKEN_NAME)
const isLogin = !!getToken()
const { slug } = useParams()
const navigate = useNavigate()