Refactor inventory status to use object instead of string.

This commit is contained in:
2025-01-24 11:26:47 -06:00
parent 3c2bda989a
commit d593d0753e
2 changed files with 2 additions and 2 deletions
@@ -32,7 +32,7 @@ function ItemDetail() {
<Text>ID: {data.id}</Text>
<Text>Brand: {data.brand}</Text>
<Text>Name: {data.name}</Text>
<Text>Status: {data.status}</Text>
<Text>Status: {data.status.name}</Text>
<Text>Serial Number: {data.serialNumber}</Text>
<Text>Rental Price: ${data.rentalPrice}</Text>
<Text>Replacement Cost: ${data.replacementCost}</Text>
+1 -1
View File
@@ -2,7 +2,7 @@ export interface InventoryItem {
id: number,
brand: string,
name: string,
status: string,
status: {id: string; name: string},
serialNumber: string,
rentalPrice: number,
replacementCost: number,