From 085a473047f6cf0c895192b42fd7eb33a28b037c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Mon, 2 Mar 2026 22:05:19 +0100 Subject: [PATCH] remove confusing info box from settings location section Co-Authored-By: Claude Opus 4.6 --- .../settings/components/settings-page.tsx | 36 ------------------- 1 file changed, 36 deletions(-) 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 && (