Skip to content

Commit

Permalink
🚨 Fix(#319): Dropdown menu ν…μŠ€νŠΈ μ™Έ μ˜μ—­λ„ 선택 κ°€λŠ₯ν•˜λ„λ‘ λ³€κ²½
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Dec 3, 2023
1 parent 943c194 commit 42cbea1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/components/_common/Dropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,16 @@ const Dropdown = ({ children, options }: DropdownProps) => {
</DropdownMenu.Trigger>
<DropdownMenu.Content onInteractOutside={() => setOpen(false)}>
{options.map((option, idx) => (
<DropdownMenu.Item
<Link
href={option.linkTo}
onClick={() => setOpen(false)}
key={idx}
className={"p-0 hover:bg-st-primary"}
>
<Link
href={option.linkTo}
onClick={() => setOpen(false)}
className="flex h-full w-full items-center justify-center"
>
<div className="p-10">{option.label}</div>
</Link>
</DropdownMenu.Item>
<DropdownMenu.Item className={"cursor-pointer hover:bg-st-primary"}>
{option.label}
</DropdownMenu.Item>
</Link>
))}
</DropdownMenu.Content>
</DropdownMenu.Root>
Expand Down

0 comments on commit 42cbea1

Please sign in to comment.