diff --git a/components/weather/favorites-section.tsx b/components/weather/favorites-section.tsx index 8bddfdd..a69dbb3 100644 --- a/components/weather/favorites-section.tsx +++ b/components/weather/favorites-section.tsx @@ -10,12 +10,8 @@ export function FavoritesSection({ stations }: { stations: SynopStation[] }) { const { t } = useI18n(); const favoriteIds = useWeatherStore((state) => state.favorites); const favorites = stations.filter((station) => favoriteIds.includes(station.id)); - if (!favorites.length) return ( -
-
{t("favorites.title")}
-

{t("favorites.empty")}

-
- ); + if (!favorites.length) return null; + return (
{t("favorites.title")}
diff --git a/lib/i18n.tsx b/lib/i18n.tsx index 851355a..45df055 100644 --- a/lib/i18n.tsx +++ b/lib/i18n.tsx @@ -54,7 +54,6 @@ const translations = { "featured.label": "Szybki wybór", "featured.title": "Wybrane stacje IMGW", "favorites.title": "Ulubione lokalizacje", - "favorites.empty": "Dodaj stacje do ulubionych, aby mieć ich odczyty pod ręką.", "favorites.addStation": "Dodaj {name} do ulubionych", "favorites.removeStation": "Usuń {name} z ulubionych", "favorites.add": "Dodaj do ulubionych", @@ -216,7 +215,6 @@ const translations = { "featured.label": "Quick select", "featured.title": "Selected IMGW stations", "favorites.title": "Favourite locations", - "favorites.empty": "Add stations to favourites to keep their readings close at hand.", "favorites.addStation": "Add {name} to favourites", "favorites.removeStation": "Remove {name} from favourites", "favorites.add": "Add to favourites",