login
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user