mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-12 21:21:21 -07:00
[BREAKING] Chore: remove deprecated widget field colorizing (#6043)
This commit is contained in:
@@ -22,11 +22,7 @@ export default function Component({ service }) {
|
||||
);
|
||||
}
|
||||
|
||||
const statusIndicator = serverData.online ? (
|
||||
<span className="text-green-500">{t("minecraft.up")}</span>
|
||||
) : (
|
||||
<span className="text-red-500">{t("minecraft.down")}</span>
|
||||
);
|
||||
const statusIndicator = serverData.online ? t("minecraft.up") : t("minecraft.down");
|
||||
const players = serverData.players ? `${serverData.players.online} / ${serverData.players.max}` : "-";
|
||||
const version = serverData.version || "-";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user