Product catalog entries are set at creation time. Per-instance details (price, THC, weight) are edited from the inventory drawer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,6 @@ export function ProductDetail({
|
||||
onMarkGone,
|
||||
onAudit,
|
||||
onEdit,
|
||||
onEditProduct,
|
||||
}: {
|
||||
item: Item;
|
||||
data: Bootstrap;
|
||||
@@ -24,7 +23,6 @@ export function ProductDetail({
|
||||
onMarkGone: (i: Item) => void;
|
||||
onAudit: (i: Item) => void;
|
||||
onEdit: (i: Item) => void;
|
||||
onEditProduct: (p: Product) => void;
|
||||
}) {
|
||||
const bin = data.bins.find((b) => b.id === item.binId);
|
||||
const cfg = TYPES.find((t) => t.id === item.type);
|
||||
@@ -178,27 +176,9 @@ export function ProductDetail({
|
||||
<div style={{ fontSize: 16, color: "var(--ink-2)" }}>
|
||||
{helpers.brandName(data, item.brandId)} · from {helpers.shopName(data, item.shopId)}
|
||||
</div>
|
||||
{product && (
|
||||
<div style={{ marginTop: 8 }}>
|
||||
<button
|
||||
onClick={() => onEditProduct(product)}
|
||||
style={{
|
||||
background: "none",
|
||||
border: "none",
|
||||
fontSize: 12,
|
||||
color: "var(--ink-3)",
|
||||
cursor: "pointer",
|
||||
textDecoration: "underline",
|
||||
padding: 0,
|
||||
}}
|
||||
>
|
||||
Edit product (catalog)
|
||||
</button>
|
||||
{siblings.length > 0 && (
|
||||
<span style={{ fontSize: 12, color: "var(--ink-3)", marginLeft: 12 }}>
|
||||
· {siblings.length} other instance{siblings.length === 1 ? "" : "s"} on file
|
||||
</span>
|
||||
)}
|
||||
{siblings.length > 0 && (
|
||||
<div style={{ marginTop: 8, fontSize: 12, color: "var(--ink-3)" }}>
|
||||
{siblings.length} other instance{siblings.length === 1 ? "" : "s"} on file
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user