Skip to content

Commit a473ab3

Browse files
authored
fix dev error (#1078)
1 parent da313d2 commit a473ab3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export const CapCard = ({
401401

402402
{isOwner && (
403403
<DropdownMenu modal={false} onOpenChange={setIsDropdownOpen}>
404-
<DropdownMenuTrigger>
404+
<DropdownMenuTrigger asChild>
405405
<CapCardButton
406406
tooltipContent="More options"
407407
className="delay-75"

apps/web/app/(org)/dashboard/caps/components/CapCard/CapCardButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ interface CapCardButtonProps {
99
disabled?: boolean;
1010
className: string;
1111
icon: () => ReactNode;
12+
asChild?: boolean;
1213
}
1314

1415
export const CapCardButton = ({
@@ -17,12 +18,14 @@ export const CapCardButton = ({
1718
disabled,
1819
className,
1920
icon,
21+
asChild,
2022
}: CapCardButtonProps) => {
2123
return (
2224
<Tooltip key={tooltipContent} content={tooltipContent}>
2325
<Button
2426
onClick={(e) => onClick?.(e)}
2527
disabled={disabled}
28+
asChild={asChild}
2629
className={clsx(
2730
`!size-8 hover:bg-gray-5 hover:border-gray-7 rounded-full min-w-fit !p-0`,
2831
className,

0 commit comments

Comments
 (0)