[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

@@ -20,16 +20,7 @@ export default function Component({ service }) {
return (
<Container service={service}>
<Block
label="widget.status"
value={
up ? (
<span className="text-green-500">{t("openwrt.up")}</span>
) : (
<span className="text-red-500">{t("openwrt.down")}</span>
)
}
/>
<Block label="widget.status" value={up ? t("openwrt.up") : t("openwrt.down")} />
<Block label="openwrt.bytesTx" value={t("common.bytes", { value: bytesTx })} />
<Block label="openwrt.bytesRx" value={t("common.bytes", { value: bytesRx })} />
</Container>