mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-19 14:04:08 +01:00
fix: update inventory item status to "Out Of Stock" and adjust status class handling
This commit is contained in:
parent
7d8fd6e10f
commit
9b81a8af3b
@ -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,
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user