mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
"Update inventory routes to include 'inventory' prefix.
Adjusted routes and links throughout the inventory feature to include the 'inventory' prefix for improved path clarity and consistency. This change ensures better organization and aligns with routing standards across the application."
This commit is contained in:
@@ -43,9 +43,9 @@ function App() {
|
|||||||
<Routes>
|
<Routes>
|
||||||
<Route index element={<Home/>}/>
|
<Route index element={<Home/>}/>
|
||||||
<Route path="inventory" element={<InventoryList/>}/>
|
<Route path="inventory" element={<InventoryList/>}/>
|
||||||
<Route path="itemDetail/:itemId" element={<ItemDetail/>}/>
|
<Route path="inventory/itemDetail/:itemId" element={<ItemDetail/>}/>
|
||||||
<Route path="editItem/:itemId" element={<EditItem/>}/>
|
<Route path="inventory/editItem/:itemId" element={<EditItem/>}/>
|
||||||
<Route path="addItem" element={<AddItem/>}/>
|
<Route path="inventory/addItem" element={<AddItem/>}/>
|
||||||
</Routes>
|
</Routes>
|
||||||
</>
|
</>
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ function InventoryList() {
|
|||||||
<p>
|
<p>
|
||||||
ARFF ARFF BARK BARK
|
ARFF ARFF BARK BARK
|
||||||
</p>
|
</p>
|
||||||
<NavLink to={'/addItem'}><BarkButton>Add Item</BarkButton></NavLink>
|
<NavLink to={'/inventory/addItem'}><BarkButton>Add Item</BarkButton></NavLink>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ function InventoryList() {
|
|||||||
<Table.Td>{data.name}</Table.Td>
|
<Table.Td>{data.name}</Table.Td>
|
||||||
<Table.Td>{data.statusId}</Table.Td>
|
<Table.Td>{data.statusId}</Table.Td>
|
||||||
<Table.Td>
|
<Table.Td>
|
||||||
<Link to={`/itemDetail/${data.id}`}>Details</Link>
|
<Link to={`/inventory/itemDetail/${data.id}`}>Details</Link>
|
||||||
</Table.Td>
|
</Table.Td>
|
||||||
</Table.Tr>
|
</Table.Tr>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function ItemDetail() {
|
|||||||
<Text>Replacement Cost: ${data.replacementCost}</Text>
|
<Text>Replacement Cost: ${data.replacementCost}</Text>
|
||||||
<Text>Notes: {data.notes}</Text>
|
<Text>Notes: {data.notes}</Text>
|
||||||
|
|
||||||
<Link to={`/editItem/${data.id}`}>Edit</Link>
|
<Link to={`/inventory/editItem/${data.id}`}>Edit</Link>
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user