From 778d4ac3772fab3e0407b8eeaebf7a8ccd2f1558 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Wed, 8 Nov 2023 12:39:53 +0100 Subject: [PATCH] feat(map): only show favorited devices Closes #46 --- src/Settings.tsx | 6 +++++- src/map/DeviceLocations.tsx | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/Settings.tsx b/src/Settings.tsx index b71b60b3..ee74ac73 100644 --- a/src/Settings.tsx +++ b/src/Settings.tsx @@ -156,7 +156,7 @@ const FavButton = ({ id }: { id: string }) => { } const FavoriteSelector = () => { - const { devices, alias } = useDevices() + const { devices, alias, lastUpdateTs } = useDevices() const { settings: { favorites }, update, @@ -165,6 +165,10 @@ const FavoriteSelector = () => { return (