mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: using preset
This commit is contained in:
parent
31661337fd
commit
e7b1973764
@ -74,7 +74,7 @@ const Navbar = (): JSX.Element => {
|
|||||||
if(!userCache) {
|
if(!userCache) {
|
||||||
localStorage.redirectTo = window.location.href
|
localStorage.redirectTo = window.location.href
|
||||||
setNavbarOpen(false)
|
setNavbarOpen(false)
|
||||||
redirectTo(router, 'logout')
|
redirectTo(router, 'login')
|
||||||
}
|
}
|
||||||
}} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer'>
|
}} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer'>
|
||||||
{ userCache ?
|
{ userCache ?
|
||||||
@ -99,8 +99,8 @@ const Navbar = (): JSX.Element => {
|
|||||||
{/* <li><hr className='border-t mx-2'/></li> */}
|
{/* <li><hr className='border-t mx-2'/></li> */}
|
||||||
<li>
|
<li>
|
||||||
<a onClick={() => {
|
<a onClick={() => {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('userCache')
|
||||||
redirectTo(router, '/api/auth/discord/logout')
|
redirectTo(router, 'logout')
|
||||||
}} className='px-4 py-2 block text-red-500 hover:bg-gray-100 dark:hover:bg-discord-dark-hover rounded-b cursor-pointer'><i className='fas fa-sign-out-alt' /> 로그아웃</a>
|
}} className='px-4 py-2 block text-red-500 hover:bg-gray-100 dark:hover:bg-discord-dark-hover rounded-b cursor-pointer'><i className='fas fa-sign-out-alt' /> 로그아웃</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user