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",
cell: ({ row }) => {
return <div className="flex items-center justify-around">
<Link href={`${pathname}/${row.original.id}`}><Button variant="ghost"><Search /></Button></Link>
{!(pathname === "/submission") ?
<Link href={`${pathname}/${row.original.id}`}><Button variant="ghost"><Search /></Button></Link>
: ""
}
<Dialog>
<DialogTrigger asChild>
<Button variant="ghost"><Trash2 color="red" /></Button>