minor changes
This commit is contained in:
@@ -210,14 +210,21 @@ const NotificationPanel = ({
|
||||
{locationLoading ? (
|
||||
<p>Standort wird geladen...</p>
|
||||
) : location ? (
|
||||
<p>
|
||||
Aktueller Standort: {location.lat.toFixed(4)}, {location.lon.toFixed(4)}
|
||||
{location.label && (
|
||||
<span className="ml-1 font-semibold text-blue-900">– {location.label}</span>
|
||||
)}{' '}
|
||||
(
|
||||
{location.updatedAt ? new Date(location.updatedAt).toLocaleString('de-DE') : 'Zeit unbekannt'})
|
||||
</p>
|
||||
<div>
|
||||
<p>
|
||||
Aktueller Standort: {location.lat.toFixed(4)}, {location.lon.toFixed(4)}
|
||||
{location.label && (
|
||||
<span className="ml-1 font-semibold text-blue-900">– {location.label}</span>
|
||||
)}{' '}
|
||||
(
|
||||
{location.updatedAt ? new Date(location.updatedAt).toLocaleString('de-DE') : 'Zeit unbekannt'})
|
||||
</p>
|
||||
{location.labelDistanceKm !== undefined && (
|
||||
<p className="text-xs text-blue-800 mt-1">
|
||||
Nächster bekannte Betrieb ca. {location.labelDistanceKm.toFixed(1)} km entfernt.
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<p>Kein Standort hinterlegt.</p>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user