diff --git a/barkmanui/src/App.tsx b/barkmanui/src/App.tsx index 062b61c..2e871c0 100644 --- a/barkmanui/src/App.tsx +++ b/barkmanui/src/App.tsx @@ -4,6 +4,7 @@ import InventoryList from "./features/inventory/InventoryList.tsx"; import { QueryClientProvider, QueryClient } from '@tanstack/react-query'; import {createTheme, MantineProvider} from '@mantine/core'; import '@mantine/core/styles.css'; +import ItemDetail from "./features/inventory/ItemDetail.tsx"; // Create a client const queryClient = new QueryClient() @@ -34,6 +35,7 @@ function App() { } /> } /> + } /> diff --git a/barkmanui/src/features/inventory/InventoryList.tsx b/barkmanui/src/features/inventory/InventoryList.tsx index 3328e9c..8b796c0 100644 --- a/barkmanui/src/features/inventory/InventoryList.tsx +++ b/barkmanui/src/features/inventory/InventoryList.tsx @@ -3,7 +3,7 @@ import {InventoryItem} from "./types"; import {BarkHeader} from "../../common/components/BarkHeader.tsx"; import {Flex, Table} from '@mantine/core'; import BarkButton from "../../common/components/BarkButton.tsx"; - +import {Link} from "react-router"; function InventoryList() { @@ -53,6 +53,7 @@ function InventoryList() { Brand Item Status + Details @@ -62,6 +63,9 @@ function InventoryList() { {data.brand} {data.name} {data.status} + + Details + ))} diff --git a/barkmanui/src/features/inventory/ItemDetail.tsx b/barkmanui/src/features/inventory/ItemDetail.tsx new file mode 100644 index 0000000..0e96200 --- /dev/null +++ b/barkmanui/src/features/inventory/ItemDetail.tsx @@ -0,0 +1,20 @@ +import {Text} from "@mantine/core"; +import {BarkHeader} from "../../common/components/BarkHeader.tsx"; +import {useParams} from "react-router"; + + +function ItemDetail() { + let params = useParams(); + + return ( + <> + + Item Detail + ID: {params.itemId} + + + + ) +} + +export default ItemDetail \ No newline at end of file