chore: fix unit
This commit is contained in:
@@ -27,6 +27,7 @@ interface ProductCardProps {
|
||||
name: string;
|
||||
category: string;
|
||||
stock: number;
|
||||
unit?: string;
|
||||
prices?: Array<{ quantity: number; price: number }>;
|
||||
media?: Array<{ url: string; type: string }>;
|
||||
};
|
||||
@@ -289,7 +290,7 @@ export default function ProductCard({ product, onPress }: ProductCardProps) {
|
||||
{ color: colors.textWhite },
|
||||
]}
|
||||
>
|
||||
{p.quantity}g
|
||||
{p.quantity}{product.unit || "g"}
|
||||
</Text>
|
||||
<Text
|
||||
style={[
|
||||
|
||||
Reference in New Issue
Block a user