Remove unit text from ProductRow view

This commit is contained in:
beatz174-bit
2025-11-24 07:25:20 +10:00
parent b01fc87403
commit 41c519fed8
+2 -2
View File
@@ -17,7 +17,7 @@ import EditIcon from '@mui/icons-material/Edit';
import CheckIcon from '@mui/icons-material/Check'; import CheckIcon from '@mui/icons-material/Check';
import CloseIcon from '@mui/icons-material/Close'; import CloseIcon from '@mui/icons-material/Close';
import { ChangeEvent, useEffect, useState } from 'react'; import { ChangeEvent, useEffect, useState } from 'react';
import { DEFAULT_UNIT_TYPE, Product } from '../models/Product'; import { Product } from '../models/Product';
import { BarcodeScannerView } from './BarcodeScannerView'; import { BarcodeScannerView } from './BarcodeScannerView';
interface ProductRowProps { interface ProductRowProps {
@@ -139,7 +139,7 @@ export const ProductRow = ({ product, categories, onSave, onDelete }: ProductRow
<div> <div>
<Typography variant="subtitle1">{product.name}</Typography> <Typography variant="subtitle1">{product.name}</Typography>
<Typography variant="caption" color="text.secondary"> <Typography variant="caption" color="text.secondary">
{product.category} {product.unit_type || DEFAULT_UNIT_TYPE} {product.category}
</Typography> </Typography>
</div> </div>
{product.barcode ? ( {product.barcode ? (