diff --git a/barkmanui/src/App.tsx b/barkmanui/src/App.tsx
index d901048..9633399 100644
--- a/barkmanui/src/App.tsx
+++ b/barkmanui/src/App.tsx
@@ -6,6 +6,7 @@ import {createTheme, MantineProvider} from '@mantine/core';
import '@mantine/core/styles.css';
import ItemDetail from "./features/inventory/ItemDetail.tsx";
import EditItem from "./features/inventory/EditItem.tsx";
+import {BarkHeader} from "./common/components/BarkHeader.tsx";
// Create a client
const queryClient = new QueryClient()
@@ -33,6 +34,7 @@ function App() {
return { (
<>
+
} />
} />
@@ -40,7 +42,6 @@ function App() {
} />
-
>
) };
diff --git a/barkmanui/src/features/inventory/EditItem.tsx b/barkmanui/src/features/inventory/EditItem.tsx
index c0c2e23..2755408 100644
--- a/barkmanui/src/features/inventory/EditItem.tsx
+++ b/barkmanui/src/features/inventory/EditItem.tsx
@@ -1,13 +1,22 @@
-import {NumberInput, Stack, Text, Textarea, TextInput} from "@mantine/core";
-import {BarkHeader} from "../../common/components/BarkHeader.tsx";
+import {Button, Group, TextInput, Text, Textarea, NumberInput} from '@mantine/core';
+import { useForm } from '@mantine/form';
import {useParams} from "react-router";
-import {InventoryItem} from "./types.ts";
import {useQuery} from "@tanstack/react-query";
-
-
+import {InventoryItem} from "./types.ts";
function EditItem() {
- let params = useParams();
+ const params = useParams();
+
+ const form = useForm({
+ mode: 'uncontrolled',
+ initialValues: {
+ email: '',
+ termsOfService: false,
+ },
+
+ validate: {
+ },
+ });
const { isPending, error, data, isFetching } = useQuery({
queryKey: ['inventory', params.itemId],
@@ -26,31 +35,24 @@ function EditItem() {
if (error) return 'An error has occurred: ' + error.message
- return (
- <>
-
-
- Edit Item
- {isFetching ? 'Updating...' : ''}
- ID: {data.id}
-
-
-
-
-
-
- Replacement Cost: ${data.replacementCost}
-
- >
- )
+ return (
+
+ );
}
-export default EditItem
\ No newline at end of file
+export default EditItem;
\ No newline at end of file
diff --git a/barkmanui/src/features/inventory/InventoryList.tsx b/barkmanui/src/features/inventory/InventoryList.tsx
index 8b796c0..1f3edec 100644
--- a/barkmanui/src/features/inventory/InventoryList.tsx
+++ b/barkmanui/src/features/inventory/InventoryList.tsx
@@ -1,6 +1,5 @@
import {useQuery} from "@tanstack/react-query";
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";
@@ -27,8 +26,6 @@ function InventoryList() {
return (
<>
-
-
-
Item Detail
{isFetching ? 'Updating...' : ''}
ID: {data.id}
diff --git a/barkmanui/src/pages/home.tsx b/barkmanui/src/pages/home.tsx
index 4550c01..c50456f 100644
--- a/barkmanui/src/pages/home.tsx
+++ b/barkmanui/src/pages/home.tsx
@@ -1,4 +1,3 @@
-import {BarkHeader} from "../common/components/BarkHeader.tsx";
import {Text} from "@mantine/core";
@@ -7,11 +6,7 @@ function Home() {
return (
<>
-
-
Bark productions: at the intersection of professionalism and degeneracy
-
-
>
)
}