mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-06 19:07:20 +03:00
fix: fix system stats i18n (#22600)
* fix: fix system stats i18n * chore: lint
This commit is contained in:
@@ -11,7 +11,7 @@ import useSWR from "swr";
|
||||
|
||||
type ThresholdBarGraphProps = {
|
||||
graphId: string;
|
||||
name: string;
|
||||
name?: string;
|
||||
unit: string;
|
||||
threshold: Threshold;
|
||||
updateTimes: number[];
|
||||
@@ -25,6 +25,7 @@ export function ThresholdBarGraph({
|
||||
updateTimes,
|
||||
data,
|
||||
}: ThresholdBarGraphProps) {
|
||||
const displayName = name || data[0]?.name || "";
|
||||
const { data: config } = useSWR<FrigateConfig>("config", {
|
||||
revalidateOnFocus: false,
|
||||
});
|
||||
@@ -186,7 +187,7 @@ export function ThresholdBarGraph({
|
||||
return (
|
||||
<div className="flex w-full flex-col">
|
||||
<div className="flex items-center gap-1">
|
||||
<div className="text-xs text-secondary-foreground">{name}</div>
|
||||
<div className="text-xs text-secondary-foreground">{displayName}</div>
|
||||
<div className="text-xs text-primary">
|
||||
{lastValue}
|
||||
{unit}
|
||||
|
||||
Reference in New Issue
Block a user