minor changes
This commit is contained in:
@@ -740,6 +740,7 @@ function App() {
|
|||||||
notificationPanelOpen={notificationPanelOpen}
|
notificationPanelOpen={notificationPanelOpen}
|
||||||
onToggleNotificationPanel={() => setNotificationPanelOpen((prev) => !prev)}
|
onToggleNotificationPanel={() => setNotificationPanelOpen((prev) => !prev)}
|
||||||
notificationProps={sharedNotificationProps}
|
notificationProps={sharedNotificationProps}
|
||||||
|
isAdmin={Boolean(session?.isAdmin)}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -98,7 +98,8 @@ const StoreWatchPage = ({
|
|||||||
locationError = '',
|
locationError = '',
|
||||||
notificationPanelOpen = false,
|
notificationPanelOpen = false,
|
||||||
onToggleNotificationPanel = () => {},
|
onToggleNotificationPanel = () => {},
|
||||||
notificationProps
|
notificationProps,
|
||||||
|
isAdmin = false
|
||||||
}) => {
|
}) => {
|
||||||
const [regions, setRegions] = useState([]);
|
const [regions, setRegions] = useState([]);
|
||||||
const [selectedRegionId, setSelectedRegionId] = useState(() => {
|
const [selectedRegionId, setSelectedRegionId] = useState(() => {
|
||||||
@@ -901,24 +902,6 @@ const StoreWatchPage = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{userLocation && !notificationPanelOpen && (
|
|
||||||
<div className="mb-4 rounded-lg border border-blue-100 bg-blue-50 p-4 text-sm text-blue-900">
|
|
||||||
<p>
|
|
||||||
Standort gespeichert:{' '}
|
|
||||||
{userLocation.label ? (
|
|
||||||
<span className="font-semibold">{userLocation.label}</span>
|
|
||||||
) : (
|
|
||||||
'Koordinaten'
|
|
||||||
)}{' '}
|
|
||||||
• {formatCoordinate(userLocation.lat)}, {formatCoordinate(userLocation.lon)}
|
|
||||||
</p>
|
|
||||||
<p className="text-xs text-blue-800 mt-1">
|
|
||||||
Aktualisiert:{' '}
|
|
||||||
{userLocation.updatedAt ? new Date(userLocation.updatedAt).toLocaleString('de-DE') : 'Zeit unbekannt'}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{(error || status) && (
|
{(error || status) && (
|
||||||
<div className="mb-4 space-y-2">
|
<div className="mb-4 space-y-2">
|
||||||
{error && (
|
{error && (
|
||||||
@@ -975,6 +958,7 @@ const StoreWatchPage = ({
|
|||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
{isAdmin && (
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -1005,6 +989,7 @@ const StoreWatchPage = ({
|
|||||||
Team-Status aktualisieren
|
Team-Status aktualisieren
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 mt-2 text-xs text-gray-500">
|
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 mt-2 text-xs text-gray-500">
|
||||||
<span>Es werden nur Regionen angezeigt, in denen du Mitglied mit Klassifikation 1 bist.</span>
|
<span>Es werden nur Regionen angezeigt, in denen du Mitglied mit Klassifikation 1 bist.</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user