updates
This commit is contained in:
@@ -44,7 +44,11 @@ function ActionsCell<TData extends { id: string | number }>({
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="end">
|
||||
{options.onEdit && (
|
||||
<DropdownMenuItem onClick={() => options.onEdit!(row.original)}>
|
||||
<DropdownMenuItem onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
options.onEdit!(row.original)
|
||||
|
||||
}}>
|
||||
<Pencil className="size-3.5 text-muted-foreground" />
|
||||
Edit
|
||||
</DropdownMenuItem>
|
||||
@@ -52,7 +56,10 @@ function ActionsCell<TData extends { id: string | number }>({
|
||||
{options.onDelete && (
|
||||
<DropdownMenuItem
|
||||
variant="destructive"
|
||||
onClick={() => options.onDelete!(row.original)}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
options.onDelete!(row.original)
|
||||
}}
|
||||
>
|
||||
<Trash2 className="size-3.5" />
|
||||
Delete
|
||||
|
||||
Reference in New Issue
Block a user