diff --git a/src/components/ProductRow.tsx b/src/components/ProductRow.tsx index 51fe6d3..16af4b9 100644 --- a/src/components/ProductRow.tsx +++ b/src/components/ProductRow.tsx @@ -144,7 +144,15 @@ export const ProductRow = ({ product, categories, onSave, onDelete }: ProductRow Scan Barcode )} - + + onDelete(product.id)} + size="small" + color="error" + > + + @@ -154,18 +162,30 @@ export const ProductRow = ({ product, categories, onSave, onDelete }: ProductRow ) : ( - -
- {product.name} - - {product.category} - -
- {product.barcode ? ( - - Barcode: {product.barcode} - - ) : null} + + + + + {product.name} + + + {product.category} • {product.unit_type || DEFAULT_UNIT_TYPE} + + + {product.barcode ? ( + + Barcode: {product.barcode} + + ) : null} + + + setIsEditing(true)} size="small"> + + + onDelete(product.id)} size="small"> + + + )}