diff --git a/src/App.js b/src/App.js index 52e5a67..9643ff6 100644 --- a/src/App.js +++ b/src/App.js @@ -740,6 +740,7 @@ function App() { notificationPanelOpen={notificationPanelOpen} onToggleNotificationPanel={() => setNotificationPanelOpen((prev) => !prev)} notificationProps={sharedNotificationProps} + isAdmin={Boolean(session?.isAdmin)} /> } /> diff --git a/src/components/StoreWatchPage.js b/src/components/StoreWatchPage.js index 704c414..c214b29 100644 --- a/src/components/StoreWatchPage.js +++ b/src/components/StoreWatchPage.js @@ -98,7 +98,8 @@ const StoreWatchPage = ({ locationError = '', notificationPanelOpen = false, onToggleNotificationPanel = () => {}, - notificationProps + notificationProps, + isAdmin = false }) => { const [regions, setRegions] = useState([]); const [selectedRegionId, setSelectedRegionId] = useState(() => { @@ -901,24 +902,6 @@ const StoreWatchPage = ({ /> )} - {userLocation && !notificationPanelOpen && ( -
-

- Standort gespeichert:{' '} - {userLocation.label ? ( - {userLocation.label} - ) : ( - 'Koordinaten' - )}{' '} - • {formatCoordinate(userLocation.lat)}, {formatCoordinate(userLocation.lon)} -

-

- Aktualisiert:{' '} - {userLocation.updatedAt ? new Date(userLocation.updatedAt).toLocaleString('de-DE') : 'Zeit unbekannt'} -

-
- )} - {(error || status) && (
{error && ( @@ -975,36 +958,38 @@ const StoreWatchPage = ({ ))}
-
- - - -
+ {isAdmin && ( +
+ + + +
+ )}
Es werden nur Regionen angezeigt, in denen du Mitglied mit Klassifikation 1 bist.