mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-15 07:01:56 +00:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user