mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
e2deae0d9a
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.
25 lines
581 B
TypeScript
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
|