File tree Expand file tree Collapse file tree
apps/web/app/(org)/dashboard/caps/components/CapCard Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ interface CapCardButtonProps {
99 disabled ?: boolean ;
1010 className : string ;
1111 icon : ( ) => ReactNode ;
12+ asChild ?: boolean ;
1213}
1314
1415export 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 ,
You can’t perform that action at this time.
0 commit comments