Move BarkHeader component to App layout

Consolidated BarkHeader usage by removing it from individual pages and including it in the main App layout. This improves consistency and reduces redundancy across components.
This commit is contained in:
2025-01-19 20:10:22 -06:00
parent 354823e00e
commit 2f7369c7f5
5 changed files with 35 additions and 43 deletions
+2 -1
View File
@@ -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 <MantineProvider defaultColorScheme="auto" theme={barkTheme}>{ (
<QueryClientProvider client={queryClient}>
<>
<BarkHeader></BarkHeader>
<Routes>
<Route index element={<Home />} />
<Route path="inventory" element={<InventoryList />} />
@@ -40,7 +42,6 @@ function App() {
<Route path="editItem/:itemId" element={<EditItem />} />
</Routes>
</>
</QueryClientProvider>
) }</MantineProvider>;