Added working System config, NOT working WiFi & modem and Session pages as placeholders. Also added NPED images.

This commit is contained in:
2025-09-08 15:21:17 +01:00
parent 4fd3bd4319
commit 0c405d2038
26 changed files with 5195 additions and 659 deletions

View File

@@ -45,6 +45,8 @@ export function useSightingFeed(url: string) {
if (data.ref === lastSeenRef.current) return; // duplicate payload → do nothing
lastSeenRef.current = data.ref;
setMostRecent(data);
setSightings((prev) => {
const existing = prev.find((p) => p?.ref === data.ref);
const next = existing
@@ -59,7 +61,8 @@ export function useSightingFeed(url: string) {
return next;
});
setMostRecent(sightings[0]);
// setMostRecent(sightings[0]);
// setMostRecent(data);
mostRecentRef.current = data.ref ?? -1;
}, [data, selectedRef, sightings]);