File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ const Dropdown = ({ items }: DropdownProps) => {
1717
1818 return (
1919 < div className = "absolute top-[17px] right-0 flex flex-col gap-[2px] min-w-[100px] bg-white shadow-lg rounded" >
20- { items . map ( ( item , index ) =>
20+ { items . map ( ( item ) =>
2121 // href가 있으면 Link로 렌더링
2222 item . href ? (
2323 < Link
24- key = { index }
24+ key = { item . label }
2525 href = { item . href }
2626 onClick = { item . onClick }
2727 className = { `${ buttonStyle } text-center ` }
@@ -30,7 +30,11 @@ const Dropdown = ({ items }: DropdownProps) => {
3030 </ Link >
3131 ) : (
3232 // href가 없으면 버튼으로 렌더링
33- < button key = { index } onClick = { item . onClick } className = { buttonStyle } >
33+ < button
34+ key = { item . label }
35+ onClick = { item . onClick }
36+ className = { buttonStyle }
37+ >
3438 { item . label }
3539 </ button >
3640 )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const HeaderMenu = () => {
2424 } ,
2525 {
2626 label : "로그아웃" ,
27- href : "/login " ,
27+ href : "/" ,
2828 onClick : logout ,
2929 } ,
3030 ] ;
@@ -59,7 +59,7 @@ const HeaderMenu = () => {
5959 즐겨찾기
6060 </ Link >
6161 < div
62- className = "flex items-center gap-[6px] text-[14px] leading-[16.71px] font-normal"
62+ className = "flex items-center gap-[6px] text-[14px] leading-[16.71px] font-normal cursor-pointer "
6363 onClick = { ( ) => setIsOpen ( ! isOpen ) }
6464 >
6565 < Image src = { Profile } width = { 28 } height = { 28 } alt = "프로필" />
You can’t perform that action at this time.
0 commit comments