=> {
- const response = await fetch(
- import.meta.env.VITE_API_URL + '/inventory/' + params.itemId,
- )
+ const response = await fetch(
+ import.meta.env.VITE_API_URL + '/inventory/' + params.itemId,
+ )
- if (!response.ok) throw new Error('Failed to fetch inventory ' + response.statusText)
+ if (!response.ok) throw new Error('Failed to fetch inventory ' + response.statusText)
- return await response.json()
- },
-});
+ return await response.json()
+ },
+ });
-if (isPending) return 'Loading...'
+ if (isPending) return 'Loading...'
-if (error) return 'An error has occurred: ' + error.message
+ if (error) return 'An error has occurred: ' + error.message
return (
<>
- Item Detail
- {isFetching ? 'Updating...' : ''}
- ID: {data.id}
- Brand: {data.brand}
- Name: {data.name}
- Status: {data.status}
- Serial Number: {data.serialNumber}
- Rental Price: ${data.rentalPrice}
- Replacement Cost: ${data.replacementCost}
- Notes: {data.notes}
-
- Edit
+
+ Item Detail
+ {isFetching ? 'Updating...' : ''}
+ ID: {data.id}
+ Brand: {data.brand}
+ Name: {data.name}
+ Status: {data.status}
+ Serial Number: {data.serialNumber}
+ Rental Price: ${data.rentalPrice}
+ Replacement Cost: ${data.replacementCost}
+ Notes: {data.notes}
+ Edit
+
>
)
}
diff --git a/barkmanui/src/pages/home.tsx b/barkmanui/src/pages/home.tsx
index c50456f..bcecbe1 100644
--- a/barkmanui/src/pages/home.tsx
+++ b/barkmanui/src/pages/home.tsx
@@ -1,4 +1,4 @@
-import {Text} from "@mantine/core";
+import {Container, Text} from "@mantine/core";
function Home() {
@@ -6,7 +6,9 @@ function Home() {
return (
<>
- Bark productions: at the intersection of professionalism and degeneracy
+
+ Bark productions: at the intersection of professionalism and degeneracy
+
>
)
}