mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
Refactor inventory status to use object instead of string.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user