Add admin help center entry points
This commit is contained in:
@@ -21,6 +21,7 @@ import { countQueuedPhotoActions } from '../lib/queueStatus';
|
||||
import { useAdminTheme } from '../theme';
|
||||
import { useAuth } from '../../auth/context';
|
||||
import { EventSwitcherSheet } from './EventSwitcherSheet';
|
||||
import { UserMenuSheet } from './UserMenuSheet';
|
||||
|
||||
type MobileShellProps = {
|
||||
title?: string;
|
||||
@@ -55,6 +56,7 @@ export function MobileShell({ title, children, activeTab, onBack, headerActions
|
||||
const [attemptedFetch, setAttemptedFetch] = React.useState(false);
|
||||
const [queuedPhotoCount, setQueuedPhotoCount] = React.useState(0);
|
||||
const [switcherOpen, setSwitcherOpen] = React.useState(false);
|
||||
const [userMenuOpen, setUserMenuOpen] = React.useState(false);
|
||||
|
||||
const effectiveEvents = events.length ? events : fallbackEvents;
|
||||
const effectiveActive = activeEvent ?? (effectiveEvents.length === 1 ? effectiveEvents[0] : null);
|
||||
@@ -267,7 +269,7 @@ export function MobileShell({ title, children, activeTab, onBack, headerActions
|
||||
</HeaderActionButton>
|
||||
|
||||
{/* User Avatar */}
|
||||
<Pressable onPress={() => navigate(adminPath('/mobile/profile'))}>
|
||||
<Pressable onPress={() => setUserMenuOpen(true)} aria-label={t('mobileProfile.title', 'Profile')}>
|
||||
<XStack
|
||||
width={36} height={36} borderRadius={18}
|
||||
backgroundColor={actionSurface}
|
||||
@@ -369,6 +371,13 @@ export function MobileShell({ title, children, activeTab, onBack, headerActions
|
||||
events={effectiveEvents}
|
||||
activeSlug={effectiveActive?.slug ?? null}
|
||||
/>
|
||||
<UserMenuSheet
|
||||
open={userMenuOpen}
|
||||
onClose={() => setUserMenuOpen(false)}
|
||||
user={user}
|
||||
isMember={isMember}
|
||||
navigate={navigate}
|
||||
/>
|
||||
</YStack>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user