diff --git a/frontend/app/inventory/page.tsx b/frontend/app/inventory/page.tsx index 98333ac0..71ba9545 100644 --- a/frontend/app/inventory/page.tsx +++ b/frontend/app/inventory/page.tsx @@ -7,6 +7,7 @@ import PageShell from '@/components/PageShell'; import Scanner from '@/components/Scanner'; import StatCard from '@/components/StatCard'; import InventoryTable from '@/components/InventoryTable'; +import FilterBar from '@/components/FilterBar'; import { useInventoryFilter } from '@/hooks/useInventoryFilter'; import { toast } from 'react-hot-toast'; import { @@ -24,7 +25,6 @@ import { Layout, Printer, Download, - Search, Box } from 'lucide-react'; import { generateBarcode128, getQRCodeURL } from '@/lib/labels'; @@ -289,18 +289,10 @@ export default function InventoryPage() { {/* Search */} -
- setSearchQuery(e.target.value)} - className="w-full bg-surface border border-slate-800 rounded-2xl py-3.5 pr-4 pl-11 text-sm focus:border-primary outline-none transition-all placeholder:text-secondary" - /> -
- -
-
+ {/* Inventory Table */} void; +} + +export default function FilterBar({ searchQuery, onChange }: FilterBarProps) { + return ( +
+ onChange(e.target.value)} + className="w-full bg-surface border border-slate-800 rounded-2xl py-3.5 pr-4 pl-11 text-sm focus:border-primary outline-none transition-all placeholder:text-secondary" + /> +
+ +
+
+ ); +}