mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-12 22:11:54 +00:00
fixed status
This commit is contained in:
@@ -15,7 +15,8 @@ function EditItem() {
|
||||
initialValues: {
|
||||
name: "",
|
||||
brand: "",
|
||||
status: "",
|
||||
statusId: "",
|
||||
status: {name: "", id: ""},
|
||||
serialNumber: "",
|
||||
rentalPrice: 0,
|
||||
replacementCost: 0,
|
||||
@@ -94,8 +95,8 @@ function EditItem() {
|
||||
placeholder="Brand" {...editItemForm.getInputProps('brand')}/>
|
||||
<TextInput withAsterisk key={editItemForm.key('name')} size="md" label="Name"
|
||||
placeholder="Name" {...editItemForm.getInputProps('name')}/>
|
||||
<TextInput size="md" key={editItemForm.key('status')} label="Status"
|
||||
placeholder="Status" {...editItemForm.getInputProps('status')}/>
|
||||
<TextInput size="md" key={editItemForm.key('statusId')} label="Status"
|
||||
placeholder="Status" {...editItemForm.getInputProps('statusId')}/>
|
||||
<TextInput size="md" key={editItemForm.key('serialNumber')} label="Serial Number"
|
||||
placeholder="Serial Number"{...editItemForm.getInputProps('serialNumber')}/>
|
||||
<NumberInput size="md" key={editItemForm.key('rentalPrice')} label="Rental Price"
|
||||
|
||||
@@ -59,7 +59,7 @@ function InventoryList() {
|
||||
<Table.Td>{data.id}</Table.Td>
|
||||
<Table.Td>{data.brand}</Table.Td>
|
||||
<Table.Td>{data.name}</Table.Td>
|
||||
<Table.Td>{data.status}</Table.Td>
|
||||
<Table.Td>{data.statusId}</Table.Td>
|
||||
<Table.Td>
|
||||
<Link to={`/itemDetail/${data.id}`}>Details</Link>
|
||||
</Table.Td>
|
||||
|
||||
@@ -3,6 +3,7 @@ export interface InventoryItem {
|
||||
brand: string,
|
||||
name: string,
|
||||
status: {id: string; name: string},
|
||||
statusId: string;
|
||||
serialNumber: string,
|
||||
rentalPrice: number,
|
||||
replacementCost: number,
|
||||
|
||||
Reference in New Issue
Block a user