disable inspect button for submissions
This commit is contained in:
parent
d0b7dd5910
commit
5058f5192e
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue