mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-10 07:15:09 +02:00
Remove statusFetchedAt unused prop
This commit is contained in:
@@ -340,10 +340,7 @@ export function RepeaterDashboard({
|
||||
/>
|
||||
|
||||
{/* Telemetry history chart — full width, below console */}
|
||||
<TelemetryHistoryPane
|
||||
entries={paneData.status?.telemetry_history ?? []}
|
||||
statusFetchedAt={paneStates.status.fetched_at}
|
||||
/>
|
||||
<TelemetryHistoryPane entries={paneData.status?.telemetry_history ?? []} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -47,16 +47,8 @@ function formatUptime(seconds: number): string {
|
||||
return `${(seconds / 86400).toFixed(1)}d`;
|
||||
}
|
||||
|
||||
export function TelemetryHistoryPane({
|
||||
entries,
|
||||
statusFetchedAt,
|
||||
}: {
|
||||
entries: TelemetryHistoryEntry[];
|
||||
statusFetchedAt?: number | null;
|
||||
}) {
|
||||
export function TelemetryHistoryPane({ entries }: { entries: TelemetryHistoryEntry[] }) {
|
||||
const [metric, setMetric] = useState<Metric>('battery_volts');
|
||||
// statusFetchedAt is used to indicate freshness; suppress unused lint
|
||||
void statusFetchedAt;
|
||||
|
||||
const config = METRIC_CONFIG[metric];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user