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.
This commit is contained in:
2025-01-15 20:36:03 -06:00
parent 524730a559
commit e2deae0d9a
6 changed files with 32 additions and 10 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { Routes, Route} from 'react-router';
import Home from './pages/home.tsx';
import Inventory from "./pages/inventory.tsx";
import InventoryList from "./features/inventory/InventoryList.tsx";
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
// Create a client
@@ -12,7 +12,7 @@ function App() {
<>
<Routes>
<Route index element={<Home />} />
<Route path="inventory" element={<Inventory />} />
<Route path="inventory" element={<InventoryList />} />
</Routes>