diff --git a/barkmanui/src/common/components/BarkButton.tsx b/barkmanui/src/common/components/BarkButton.tsx new file mode 100644 index 0000000..5a0037e --- /dev/null +++ b/barkmanui/src/common/components/BarkButton.tsx @@ -0,0 +1,10 @@ +import {PropsWithChildren} from "react"; +import { Button } from '@mantine/core'; + +function BarkButton({children}: PropsWithChildren) { + return ( + + ) +} + +export default BarkButton; \ No newline at end of file diff --git a/barkmanui/src/common/components/Button.tsx b/barkmanui/src/common/components/Button.tsx deleted file mode 100644 index f181445..0000000 --- a/barkmanui/src/common/components/Button.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import {PropsWithChildren} from "react"; - -function Button({children}: PropsWithChildren) { - return ( - - ) -} - -export default Button \ No newline at end of file diff --git a/barkmanui/src/features/inventory/InventoryList.tsx b/barkmanui/src/features/inventory/InventoryList.tsx index 45844f2..ca97bc8 100644 --- a/barkmanui/src/features/inventory/InventoryList.tsx +++ b/barkmanui/src/features/inventory/InventoryList.tsx @@ -1,8 +1,8 @@ import {useQuery} from "@tanstack/react-query"; -import {Link} from "react-router"; import {InventoryItem} from "./types"; -import Button from "../../common/components/Button.tsx"; import {BarkHeader} from "../../common/components/BarkHeader.tsx"; +import { Table } from '@mantine/core'; +import BarkButton from "../../common/components/BarkButton.tsx"; function InventoryList() { @@ -28,38 +28,33 @@ function InventoryList() { return ( <> - -
-

Inventory

-

ARFF ARFF BARK BARK

- - - + Add Item +
{isFetching ? 'Updating...' : ''}
- - - - - - - - - - +
IDBrandItemStatus
+ + + ID + Brand + Item + Status + + + {data.map((data) => ( - - - - - - + + {data.id} + {data.brand} + {data.name} + {data.status} + ))} - -
{data.id}{data.brand}{data.name}{data.status}
+ + ) } diff --git a/barkmanui/src/pages/home.tsx b/barkmanui/src/pages/home.tsx index 6c7c4e7..2d1c00a 100644 --- a/barkmanui/src/pages/home.tsx +++ b/barkmanui/src/pages/home.tsx @@ -1,5 +1,3 @@ -import {Link} from "react-router"; -import Button from "../common/components/Button.tsx"; import {BarkHeader} from "../common/components/BarkHeader.tsx"; @@ -9,15 +7,9 @@ function Home() { return ( <> -
-

Home

-

ARFF ARFF BARK BARK

- - - )