From 9b81a8af3bdb67e72d98727ac5d3bc26b4a7e1a0 Mon Sep 17 00:00:00 2001 From: Pattadon Date: Tue, 1 Apr 2025 11:19:25 +0700 Subject: [PATCH] fix: update inventory item status to "Out Of Stock" and adjust status class handling --- frontend/api/inventory.ts | 2 +- frontend/app/(sidebar)/inventory/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/api/inventory.ts b/frontend/api/inventory.ts index 69fd6b3..12425e0 100644 --- a/frontend/api/inventory.ts +++ b/frontend/api/inventory.ts @@ -51,7 +51,7 @@ export async function fetchInventoryItems(): Promise { quantity: 150, unit: "kg", lastUpdated: "2023-03-15", - status: "In Stock", + status: "Out Of Stock", }, { id: 5, diff --git a/frontend/app/(sidebar)/inventory/page.tsx b/frontend/app/(sidebar)/inventory/page.tsx index 8ae7194..c21d0d6 100644 --- a/frontend/app/(sidebar)/inventory/page.tsx +++ b/frontend/app/(sidebar)/inventory/page.tsx @@ -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 }