This commit is contained in:
g
2025-02-07 05:26:00 +00:00
parent 3205bb1a6b
commit 0edb913dea
4 changed files with 217 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ const ProductTable = ({
<Button size="sm" variant="ghost" onClick={() => onEdit(product)}>
<Edit className="h-4 w-4" />
</Button>
<Button size="sm" variant="ghost" className="text-red-600 hover:text-red-700 dark:text-red-400" onClick={() => onDelete(product._id)}>
<Button size="sm" variant="ghost" className="text-red-600 hover:text-red-700 dark:text-red-400" onClick={() => onDelete(product._id ?? "")}>
<Trash className="h-4 w-4" />
</Button>
</div>