fix(orders/new): ListView 에 unlimitedQty prop 전달 (빌드 fail fix)
Deploy momo-erp / deploy (push) Successful in 1m42s
Deploy momo-erp / deploy (push) Successful in 1m42s
직전 commit 9e9922e 에서 ListView 내부에서 부모 scope 의 unlimitedQty 를
직접 참조 → TS2304. props 로 명시 전달
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -469,6 +469,7 @@ export default function ItemsBrowse() {
|
||||
<ListView
|
||||
items={items}
|
||||
cart={cart}
|
||||
unlimitedQty={unlimitedQty}
|
||||
onAdd={addManyToCart}
|
||||
onPlus={(o) => updateQty(o, 1)}
|
||||
onMinus={(o) => updateQty(o, -1)}
|
||||
@@ -604,8 +605,8 @@ function Row({ label, value, color }: { label: string; value: string; color?: "v
|
||||
);
|
||||
}
|
||||
|
||||
function ListView({ items, cart, onAdd, onPlus, onMinus, onSetQty, onRemove }: {
|
||||
items: Item[]; cart: CartLine[];
|
||||
function ListView({ items, cart, unlimitedQty, onAdd, onPlus, onMinus, onSetQty, onRemove }: {
|
||||
items: Item[]; cart: CartLine[]; unlimitedQty: boolean;
|
||||
onAdd: (it: Item, qty: number) => void;
|
||||
onPlus: (o: string) => void;
|
||||
onMinus: (o: string) => void;
|
||||
|
||||
Reference in New Issue
Block a user