Update some widgets with highlightValue

This commit is contained in:
shamoon
2026-03-16 18:33:38 -07:00
parent 3fd59dc5d0
commit 6431fae5d6
4 changed files with 4 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ export default function Component({ service }) {
<Block
label="adguard.latency"
value={t("common.ms", { value: adguardData.avg_processing_time * 1000, style: "unit", unit: "millisecond" })}
highlightValue={adguardData.avg_processing_time * 1000}
/>
</Container>
);

View File

@@ -58,7 +58,7 @@ export default function Component({ service }) {
<Block label="gamedig.players" value={players} />
<Block label="gamedig.maxPlayers" value={maxPlayers} />
<Block label="gamedig.bots" value={bots} />
<Block label="gamedig.ping" value={ping} />
<Block label="gamedig.ping" value={ping} highlightValue={serverData.online ? serverData.ping : undefined} />
</Container>
);
}

View File

@@ -54,6 +54,7 @@ export default function Component({ service }) {
style: "unit",
unit: "millisecond",
})}
highlightValue={data[0].ping}
/>
</Container>
);

View File

@@ -54,6 +54,7 @@ export default function Component({ service }) {
style: "unit",
unit: "millisecond",
})}
highlightValue={speedtestData.data.ping}
/>
</Container>
);