mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-08-11 11:42:03 +00:00
added routes and header button
This commit is contained in:
@@ -10,6 +10,7 @@ import {BarkHeader} from "./common/components/BarkHeader.tsx";
|
|||||||
import AddItem from "./features/inventory/AddItem.tsx";
|
import AddItem from "./features/inventory/AddItem.tsx";
|
||||||
import { Notifications } from '@mantine/notifications';
|
import { Notifications } from '@mantine/notifications';
|
||||||
import '@mantine/notifications/styles.css';
|
import '@mantine/notifications/styles.css';
|
||||||
|
import CustomerList from "@/features/customers/CustomerList.tsx";
|
||||||
|
|
||||||
// Create a client
|
// Create a client
|
||||||
const queryClient = new QueryClient()
|
const queryClient = new QueryClient()
|
||||||
@@ -46,6 +47,8 @@ function App() {
|
|||||||
<Route path="inventory/itemDetail/:itemId" element={<ItemDetail/>}/>
|
<Route path="inventory/itemDetail/:itemId" element={<ItemDetail/>}/>
|
||||||
<Route path="inventory/editItem/:itemId" element={<EditItem/>}/>
|
<Route path="inventory/editItem/:itemId" element={<EditItem/>}/>
|
||||||
<Route path="inventory/addItem" element={<AddItem/>}/>
|
<Route path="inventory/addItem" element={<AddItem/>}/>
|
||||||
|
<Route path="customers" element={<CustomerList/>}/>
|
||||||
|
|
||||||
</Routes>
|
</Routes>
|
||||||
</>
|
</>
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import BarkLogo from '@/assets/barklogo.png';
|
|||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
{ link: '/', label: 'Home' },
|
{ link: '/', label: 'Home' },
|
||||||
|
{ link: '/customers', label: 'Customers' },
|
||||||
{ link: '/inventory', label: 'Inventory' },
|
{ link: '/inventory', label: 'Inventory' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user