fix: update inventory item status to "Out Of Stock" and adjust status class handling

This commit is contained in:
Pattadon 2025-04-01 11:19:25 +07:00
parent 7d8fd6e10f
commit 9b81a8af3b
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ export async function fetchInventoryItems(): Promise<InventoryItem[]> {
quantity: 150,
unit: "kg",
lastUpdated: "2023-03-15",
status: "In Stock",
status: "Out Of Stock",
},
{
id: 5,

View File

@ -83,7 +83,7 @@ export default function InventoryPage() {
if (status === "Low Stock") {
statusClass = "bg-yellow-300"; // yellow for low stock
} else if (status === "Out of Stock") {
} else if (status === "Out Of Stock") {
statusClass = "bg-red-500 text-white"; // red for out of stock
}