fix(6): use shared Item type from db.ts in SearchModal

- Remove duplicate Item interface from SearchModal
- Import Item from @/lib/db to ensure type consistency
- Fixes TypeScript error with missing category/min_quantity fields
This commit is contained in:
2026-04-22 18:47:21 +03:00
parent 37b6d295ff
commit 3be455de72

View File

@@ -2,14 +2,7 @@
import { useState, useEffect, useRef, useCallback } from 'react'; import { useState, useEffect, useRef, useCallback } from 'react';
import { X, Search } from 'lucide-react'; import { X, Search } from 'lucide-react';
import { Item } from '@/lib/db';
interface Item {
id: number;
name: string;
part_number?: string;
barcode?: string;
quantity: number;
}
interface SearchModalProps { interface SearchModalProps {
isOpen: boolean; isOpen: boolean;