diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx index 8d30c0a..6ac2993 100644 --- a/src/sections/HistoriaClinica.tsx +++ b/src/sections/HistoriaClinica.tsx @@ -1615,18 +1615,18 @@ function SeccionAcidosBase({ ab, patientId, add, update, del }: { {a.lactato} {a.fio2} {(() => { - if (a.fio2 == null || a.fio2 <= 0) return ; + if (a.fio2 == null || a.fio2 <= 0) return ; const pf = a.po2 / a.fio2; - const color = - pf > 300 ? "green" : - pf > 200 ? "yellow" : - pf > 100 ? "orange" : - "red"; + const badgeClass = + pf > 300 ? "bg-green-500 text-white hover:bg-green-600 dark:bg-green-600 dark:hover:bg-green-500" : + pf > 200 ? "bg-yellow-500 text-white hover:bg-yellow-600 dark:bg-yellow-600 dark:hover:bg-yellow-500" : + pf > 100 ? "bg-orange-500 text-white hover:bg-orange-600 dark:bg-orange-600 dark:hover:bg-orange-500" : + "bg-red-500 text-white hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500"; return ( - + {pf.toFixed(1)} );