Frontend Hotfixes & Backend improvements
Run Tests on Branches / Detect Changes (push) Successful in 9s
Run Tests on Branches / Backend Tests (push) Successful in 1m51s
Run Tests on Branches / Frontend Tests (push) Has been skipped
Run Tests on Branches / Frontend Mobile Tests (push) Successful in 1m44s

This commit is contained in:
Ichitux
2026-07-09 00:58:31 +02:00
parent 16fea2de8f
commit 5f604b11ba
8 changed files with 73 additions and 31 deletions
@@ -29,27 +29,27 @@ export function MedicineCard({ medicine }: MedicineCardProps) {
>
<View style={styles.header}>
<Text style={[styles.name, isTablet && styles.nameTablet]} numberOfLines={2}>
{medicine.nombre}
{medicine.name}
</Text>
<StockBadge stock={medicine.stock} />
{medicine.stock != null && <StockBadge stock={medicine.stock} />}
</View>
<Text style={styles.principioActivo} numberOfLines={1}>
{medicine.principioActivo}
{medicine.active_ingredient}{medicine.dosage ? ` - ${medicine.dosage}` : ''}
</Text>
<View style={styles.footer}>
<View style={styles.priceContainer}>
<Ionicons name="pricetag" size={14} color={colors.textSecondary} />
<Text style={[styles.price, isTablet && styles.priceTablet]}>
{medicine.precio ? `${medicine.precio.toFixed(2)}` : 'Sin precio'}
{medicine.precio != null ? `${medicine.precio.toFixed(2)}` : 'Sin precio'}
</Text>
</View>
<View style={styles.labContainer}>
<Ionicons name="business" size={14} color={colors.textSecondary} />
<Text style={[styles.laboratorio, isTablet && styles.laboratorioTablet]} numberOfLines={1}>
{medicine.laboratorio}
{medicine.laboratory}
</Text>
</View>
</View>