Compare commits
No commits in common. "b5745a3c054e3719b005c2604c21c4a92a580dd1" and "494521d51dc81ec8b15832dc37d5ff78abca960d" have entirely different histories.
b5745a3c05
...
494521d51d
|
@ -1,6 +1,6 @@
|
|||
import { Dialog, DialogTrigger, DialogClose, DialogDescription, DialogContent, DialogTitle, DialogHeader, DialogFooter } from "@/components/ui/dialog"
|
||||
import Link from "next/link"
|
||||
import { Trash2, Search, Pencil } from "lucide-react"
|
||||
import { Trash2, Search } from "lucide-react"
|
||||
import { Button } from "@/components/ui/button"
|
||||
|
||||
export function actions({ pathname, deleteFn }: { pathname: string, deleteFn: (id: number) => void }) {
|
||||
|
@ -9,13 +9,7 @@ export function actions({ pathname, deleteFn }: { pathname: string, deleteFn: (i
|
|||
// header: "Actions",
|
||||
cell: ({ row }) => {
|
||||
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}/edit/${row.original.id}`}><Button variant="ghost"><Pencil /></Button></Link>
|
||||
|
||||
<Dialog>
|
||||
<DialogTrigger asChild>
|
||||
<Button variant="ghost"><Trash2 color="red" /></Button>
|
||||
|
|
Loading…
Reference in New Issue