better delete icon

This commit is contained in:
andrzej 2024-06-19 21:58:19 +02:00
parent 2dc4bb2279
commit 99d693df6f
1 changed files with 2 additions and 3 deletions

View File

@ -4,9 +4,8 @@ import { StoryWithGenres } from "./page"
import { ArrowUpDown, MoreHorizontal } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Badge } from "@/components/ui/badge"
import { CircleX } from "lucide-react"
import { Trash2 } from "lucide-react"
import { deleteStory } from "app/lib/del"
import { useRouter } from "next/navigation"
const columnHelper = createColumnHelper<StoryWithGenres>()
@ -56,7 +55,7 @@ export const columns: ColumnDef<StoryWithGenres>[] = [
cell: ({ row }) => {
return <Button variant="ghost"
onClick={() => { deleteStory(row.original.id) }}>
<CircleX /></Button>
<Trash2 color="red" /></Button>
}
}