diff --git a/src/features/settings/components/settings-page.tsx b/src/features/settings/components/settings-page.tsx index 2d06d3b..f23b50a 100644 --- a/src/features/settings/components/settings-page.tsx +++ b/src/features/settings/components/settings-page.tsx @@ -12,16 +12,6 @@ import { useCallback, useEffect, useState } from "react" import { type GeoResult, clearGeoCache, detectFromCoords, loadCachedResult } from "../../location/lib/geo" import { NotificationGuide } from "./notification-guide" -function formatCacheAge(cachedAt: number): string { - const minutes = Math.floor((Date.now() - cachedAt) / 60_000) - if (minutes < 1) return "gerade eben" - if (minutes < 60) return `vor ${minutes} Min.` - const hours = Math.floor(minutes / 60) - if (hours < 24) return `vor ${hours} Std.` - const days = Math.floor(hours / 24) - return `vor ${days} T.` -} - function isStandalone(): boolean { if (typeof window === "undefined") return false return ( @@ -161,32 +151,6 @@ export function SettingsPage() { {/* --- Location --- */}

Standort

- {hasLocation && result.bundesland ? ( - - -
- Bundesland - {result.bundesland} -
- {result.landtag_label && ( -
- Landtag - {result.landtag_label} -
- )} -
- Abgeordnete geladen - {result.mandates.length} -
- {result.cachedAt && ( -
- Zwischengespeichert - {formatCacheAge(result.cachedAt)} -
- )} -
-
- ) : null} {loading && (