Files
barkman/barkmanui/src/App.tsx
T
drew e2deae0d9a Refactor inventory functionality and improve modularity.
Relocated inventory page to features directory and renamed it for clarity. Introduced a reusable `Button` component and replaced inline buttons across components. Added type definitions for inventory items and environment variable support for API URL configuration.
2025-01-15 20:36:03 -06:00

25 lines
581 B
TypeScript

import { Routes, Route} from 'react-router';
import Home from './pages/home.tsx';
import InventoryList from "./features/inventory/InventoryList.tsx";
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
// Create a client
const queryClient = new QueryClient()
function App() {
return (
<QueryClientProvider client={queryClient}>
<>
<Routes>
<Route index element={<Home />} />
<Route path="inventory" element={<InventoryList />} />
</Routes>
</>
</QueryClientProvider>
)
}
export default App