From 42bcdbd57b4ee3b183f605152d43754a552ca155 Mon Sep 17 00:00:00 2001 From: JSM Date: Thu, 14 Nov 2024 18:10:53 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=EB=A1=9C=EA=B7=B8=EC=95=84=EC=9B=83=20?= =?UTF-8?q?=EC=8B=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EB=A1=9C=20=EB=A6=AC=EB=8B=A4=EC=9D=B4=EB=A0=89?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Dropdown.tsx | 7 ++++++- components/HeaderMenu.tsx | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/Dropdown.tsx b/components/Dropdown.tsx index b39a441..03a6a76 100644 --- a/components/Dropdown.tsx +++ b/components/Dropdown.tsx @@ -20,7 +20,12 @@ const Dropdown = ({ items }: DropdownProps) => { {items.map((item, index) => // href가 있으면 Link로 렌더링 item.href ? ( - + {item.label} ) : ( diff --git a/components/HeaderMenu.tsx b/components/HeaderMenu.tsx index 84f90e8..261c070 100644 --- a/components/HeaderMenu.tsx +++ b/components/HeaderMenu.tsx @@ -24,6 +24,7 @@ const HeaderMenu = () => { }, { label: "로그아웃", + href: "/login", onClick: logout, }, ]; From a5da56c3577388dd685efe8a6fd70cba2fb2fd9a Mon Sep 17 00:00:00 2001 From: JSM Date: Thu, 14 Nov 2024 19:15:40 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=EC=9D=B8=EB=8D=B1=EC=8A=A4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Dropdown.tsx | 10 +++++++--- components/HeaderMenu.tsx | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/Dropdown.tsx b/components/Dropdown.tsx index 03a6a76..9f3c103 100644 --- a/components/Dropdown.tsx +++ b/components/Dropdown.tsx @@ -17,11 +17,11 @@ const Dropdown = ({ items }: DropdownProps) => { return (
- {items.map((item, index) => + {items.map((item) => // href가 있으면 Link로 렌더링 item.href ? ( { ) : ( // href가 없으면 버튼으로 렌더링 - ) diff --git a/components/HeaderMenu.tsx b/components/HeaderMenu.tsx index 261c070..9afe74c 100644 --- a/components/HeaderMenu.tsx +++ b/components/HeaderMenu.tsx @@ -24,7 +24,7 @@ const HeaderMenu = () => { }, { label: "로그아웃", - href: "/login", + href: "/", onClick: logout, }, ]; @@ -59,7 +59,7 @@ const HeaderMenu = () => { 즐겨찾기
setIsOpen(!isOpen)} > 프로필