diff --git a/src/components/stock/columns.tsx b/src/components/stock/columns.tsx index 3e8c66e..c006bc8 100644 --- a/src/components/stock/columns.tsx +++ b/src/components/stock/columns.tsx @@ -13,7 +13,6 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" -import { Badge } from "@/components/ui/badge" export type StockItem = { id: string @@ -99,10 +98,20 @@ export const columns: ColumnDef[] = [ accessorKey: "status", header: "Status", cell: ({ row }) => { - const status = row.getValue("status") as string - const variant = status === "In Stock" ? "default" : status === "Low Stock" ? "secondary" : "destructive" + const status = row.getValue("status") as "In Stock" | "Low Stock" | "Out of Stock" - return {status} + const statusColor = { + "In Stock": "bg-green-500", + "Low Stock": "bg-yellow-500", + "Out of Stock": "bg-red-500", + }; + + return ( +
+ + {status} +
+ ) } }, {