[BREAKING] Chore: remove deprecated widget field colorizing (#6043)

This commit is contained in:
shamoon
2025-12-03 10:46:29 -08:00
committed by GitHub
parent fb9927ab0c
commit 307d7f4b2d
4 changed files with 4 additions and 30 deletions

View File

@@ -56,16 +56,7 @@ export default function Component({ service }) {
label="pfsense.temp"
value={t("common.number", { value: systemData.data.temp_c, style: "unit", unit: "celsius" })}
/>
<Block
label="pfsense.wanStatus"
value={
wan.status === "up" ? (
<span className="text-green-500">{t("pfsense.up")}</span>
) : (
<span className="text-red-500">{t("pfsense.down")}</span>
)
}
/>
<Block label="pfsense.wanStatus" value={wan.status === "up" ? t("pfsense.up") : t("pfsense.down")} />
{showWanIP && <Block label="pfsense.wanIP" value={wan.ipaddr} />}
{showDiskUsage && <Block label="pfsense.disk" value={t("common.percent", { value: diskUsage.toFixed(2) })} />}
</Container>