Fix: Remove unused StockItem interface to pass strict TypeScript build
This commit is contained in:
1 parent
7b9c654fb1
commit
36319652ad
1 file changed
-13
@@ -1,18 +1,5 @@
|
|||||||
import { Icons } from './Icons';
|
import { Icons } from './Icons';
|
||||||
|
|
||||||
interface StockItem {
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
category: string;
|
|
||||||
price: number;
|
|
||||||
unit: string;
|
|
||||||
available: boolean;
|
|
||||||
description: string;
|
|
||||||
bulk1Threshold: number;
|
|
||||||
bulk1Price: number;
|
|
||||||
bulk2Threshold: number;
|
|
||||||
bulk2Price: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
function StockCard({ item, onAdd, disabled }: { item: any, onAdd?: () => void, disabled?: boolean }) {
|
function StockCard({ item, onAdd, disabled }: { item: any, onAdd?: () => void, disabled?: boolean }) {
|
||||||
const hasTier1 = item.bulk1Threshold > 0 && item.bulk1Price > 0;
|
const hasTier1 = item.bulk1Threshold > 0 && item.bulk1Price > 0;
|
||||||
|
|||||||
Reference in new issue
Block a user