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
+7 -6
View File
@@ -56,17 +56,18 @@ export default function MedicineDetailScreen() {
return (
<ScrollView style={styles.container}>
<View style={styles.header}>
<Text style={styles.name}>{medicine.nombre}</Text>
<StockBadge stock={medicine.stock} />
<Text style={styles.name}>{medicine.name}</Text>
{medicine.stock != null && <StockBadge stock={medicine.stock} />}
</View>
<View style={styles.infoSection}>
<InfoRow label="Principio activo" value={medicine.principioActivo} />
<InfoRow label="Laboratorio" value={medicine.laboratorio} />
<InfoRow label="Forma farmacéutica" value={medicine.formaFarmaceutica} />
<InfoRow label="Principio activo" value={medicine.active_ingredient} />
<InfoRow label="Laboratorio" value={medicine.laboratory} />
<InfoRow label="Forma farmacéutica" value={medicine.form} />
<InfoRow label="Dosificación" value={medicine.dosage} />
<InfoRow
label="Precio"
value={medicine.precio ? `${medicine.precio.toFixed(2)}` : 'No disponible'}
value={medicine.precio != null ? `${medicine.precio.toFixed(2)}` : 'No disponible'}
/>
<InfoRow label="Registro" value={medicine.nregistro} />
</View>