feat: add ordersCount to product model and display in SelectProductElement
This commit is contained in:
@@ -24,7 +24,9 @@ const SelectProductElement: FC<Props> = React.memo(({product, onPress}) => {
|
|||||||
<View style={styles.descriptionContent}>
|
<View style={styles.descriptionContent}>
|
||||||
|
|
||||||
<DText>{product.productName}</DText>
|
<DText>{product.productName}</DText>
|
||||||
<DText style={{textAlign: "justify"}}>{}</DText>
|
<DText>Заказов: {product.ordersCount}</DText>
|
||||||
|
<DText style={{textAlign: "justify"}}>""</DText>
|
||||||
|
|
||||||
<DText>Артикул DENCO: {product.dencoArticle}</DText>
|
<DText>Артикул DENCO: {product.dencoArticle}</DText>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,5 @@ export type Product = {
|
|||||||
dencoArticle: number;
|
dencoArticle: number;
|
||||||
productName: string;
|
productName: string;
|
||||||
thumbUrl: string;
|
thumbUrl: string;
|
||||||
|
ordersCount?:number
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user