find-id 디자인 수정중1
This commit is contained in:
@@ -118,7 +118,7 @@ export default function NavBar() {
|
||||
<Link href="/menu/account" className="px-4 py-2 text-[16px] font-semibold text-white">
|
||||
내 정보
|
||||
</Link>
|
||||
<Link href="/login" className="px-4 py-2 text-[16px] font-semibold text-white">
|
||||
<Link href="/login" className="px-4 py-2 text-[16px] font-semibold text-white ">
|
||||
로그아웃
|
||||
</Link>
|
||||
</>
|
||||
@@ -152,14 +152,23 @@ export default function NavBar() {
|
||||
<Link
|
||||
role="menuitem"
|
||||
href="/menu/account"
|
||||
className="block w-full h-10 px-2 rounded-lg text-left text-[#333C47] text-[16px] font-medium leading-normal hover:bg-[rgba(236,240,255,0.5)] focus:bg-[rgba(236,240,255,0.5)] outline-none"
|
||||
className="flex items-center w-[136px] h-10 px-2 rounded-lg text-left text-[#333C47] text-[16px] font-medium leading-normal hover:bg-[rgba(236,240,255,0.5)] focus:bg-[rgba(236,240,255,0.5)] outline-nonq"
|
||||
onClick={() => setIsUserMenuOpen(false)}
|
||||
>
|
||||
내 정보 수정
|
||||
</Link>
|
||||
<button
|
||||
role="menuitem"
|
||||
className="w-full h-10 px-2 rounded-lg text-left text-[#333C47] text-[16px] font-medium leading-normal hover:bg-[rgba(236,240,255,0.5)] focus:bg-[rgba(236,240,255,0.5)] outline-none"
|
||||
className="flex items-center w-[136px] h-10 px-2 rounded-lg text-left text-[#333C47] text-[16px] font-medium leading-normal hover:bg-[rgba(236,240,255,0.5)] focus:bg-[rgba(236,240,255,0.5)] outline-none"
|
||||
onClick={() => {
|
||||
// 로컬 스토리지에서 토큰 제거
|
||||
localStorage.removeItem('token');
|
||||
localStorage.removeItem('user');
|
||||
// 쿠키에서 토큰 제거 (미들웨어에서 확인하므로)
|
||||
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
||||
// 로그인 페이지로 리다이렉트
|
||||
window.location.href = '/login';
|
||||
}}
|
||||
>
|
||||
로그아웃
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user