mirror of
https://github.com/gethomepage/homepage.git
synced 2026-05-18 19:40:58 +08:00
Update some widgets with highlightValue
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ export default function Component({ service }) {
|
||||
style: "unit",
|
||||
unit: "millisecond",
|
||||
})}
|
||||
highlightValue={data[0].ping}
|
||||
/>
|
||||
</Container>
|
||||
);
|
||||
|
||||
@@ -54,6 +54,7 @@ export default function Component({ service }) {
|
||||
style: "unit",
|
||||
unit: "millisecond",
|
||||
})}
|
||||
highlightValue={speedtestData.data.ping}
|
||||
/>
|
||||
</Container>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user