From fb3867d6202a4d6a3b758198410b6dedbdb5e76e Mon Sep 17 00:00:00 2001 From: Sergio Nicolas Lavaise Date: Tue, 21 Apr 2026 09:42:29 -0300 Subject: [PATCH] Fix: PaFiO2 badge colors in EAB table --- src/sections/HistoriaClinica.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)} );