disable inspect button for submissions

This commit is contained in:
andrzej 2024-06-26 12:42:18 +02:00
parent d0b7dd5910
commit 5058f5192e
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ export function actions({ pathname, deleteFn }: { pathname: string, deleteFn: (i
// header: "Actions", // header: "Actions",
cell: ({ row }) => { cell: ({ row }) => {
return <div className="flex items-center justify-around"> return <div className="flex items-center justify-around">
{!(pathname === "/submission") ?
<Link href={`${pathname}/${row.original.id}`}><Button variant="ghost"><Search /></Button></Link> <Link href={`${pathname}/${row.original.id}`}><Button variant="ghost"><Search /></Button></Link>
: ""
}
<Dialog> <Dialog>
<DialogTrigger asChild> <DialogTrigger asChild>
<Button variant="ghost"><Trash2 color="red" /></Button> <Button variant="ghost"><Trash2 color="red" /></Button>