diff --git a/client/src/mobile/screens/dashboard/MUserMenu.tsx b/client/src/mobile/screens/dashboard/MUserMenu.tsx index 6cba921ea..94cf6d44e 100644 --- a/client/src/mobile/screens/dashboard/MUserMenu.tsx +++ b/client/src/mobile/screens/dashboard/MUserMenu.tsx @@ -4,6 +4,7 @@ import { LogOut, Moon, Settings2, Shield, Sun, SunMoon } from 'lucide-react' import type { LucideIcon } from 'lucide-react' import { useTranslation } from '../../../i18n' import { useAuthStore } from '../../../store/authStore' +import { useIsDark } from '../../../hooks/useIsDark' import { useSettingsStore } from '../../../store/settingsStore' import MDropdownPanel from '../../components/MDropdownPanel' import MListRow from '../../components/MListRow' @@ -33,14 +34,16 @@ interface MUserMenuProps { /** * Avatar popover of the mobile top bar: profile header (with admin badge), - * settings, admin panel (admins only), the dark/light/auto theme cycle and - * sign out. + * settings, admin panel (admins only), the dark/light/auto theme cycle, sign + * out and the app version as a footer, like the desktop account menu. */ export default function MUserMenu({ open, onClose }: MUserMenuProps): React.ReactElement { const { t } = useTranslation() const navigate = useNavigate() const user = useAuthStore(s => s.user) const logout = useAuthStore(s => s.logout) + const appVersion = useAuthStore(s => s.appVersion) + const dark = useIsDark() const darkMode = useSettingsStore(s => s.settings.dark_mode) const updateSetting = useSettingsStore(s => s.updateSetting) @@ -88,6 +91,17 @@ export default function MUserMenu({ open, onClose }: MUserMenuProps): React.Reac />