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