We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e854869 commit 42bcdbdCopy full SHA for 42bcdbd
components/Dropdown.tsx
@@ -20,7 +20,12 @@ const Dropdown = ({ items }: DropdownProps) => {
20
{items.map((item, index) =>
21
// href가 있으면 Link로 렌더링
22
item.href ? (
23
- <Link key={index} href={item.href} className={buttonStyle}>
+ <Link
24
+ key={index}
25
+ href={item.href}
26
+ onClick={item.onClick}
27
+ className={`${buttonStyle} text-center `}
28
+ >
29
{item.label}
30
</Link>
31
) : (
components/HeaderMenu.tsx
@@ -24,6 +24,7 @@ const HeaderMenu = () => {
},
{
label: "로그아웃",
+ href: "/login",
onClick: logout,
];
0 commit comments