diff --git a/src/app/pages/client/navigate/Navigate.tsx b/src/app/pages/client/navigate/Navigate.tsx index a43b02f27..ccb95bc54 100644 --- a/src/app/pages/client/navigate/Navigate.tsx +++ b/src/app/pages/client/navigate/Navigate.tsx @@ -71,15 +71,11 @@ export function Navigate() { - {!hideText ? ( - - - Navigate - - - ) : ( - sizedIcon(SquaresFour, '200', { filled: true }) - )} + + + Navigate + + diff --git a/src/app/pages/client/profile/Profile.tsx b/src/app/pages/client/profile/Profile.tsx index 3373ee2bc..300afc1ff 100644 --- a/src/app/pages/client/profile/Profile.tsx +++ b/src/app/pages/client/profile/Profile.tsx @@ -34,7 +34,12 @@ import { useUserProfile } from '$hooks/useUserProfile'; import type { SettingsMenuItem } from '$features/settings'; import { settingsMenuIcons, settingsSections, useOpenSettings } from '$features/settings'; import { UserQuickTools } from '../sidebar/UserQuickTools'; -import { CaretDownIcon, CaretRightIcon, SignOutIcon } from '@phosphor-icons/react'; +import { + CaretDownIcon, + CaretRightIcon, + PencilSimpleIcon, + SignOutIcon, +} from '@phosphor-icons/react'; import { UseStateProvider } from '$components/UseStateProvider'; import { FocusTrap } from 'focus-trap-react'; import { LogoutDialog } from '$components/LogoutDialog'; @@ -133,6 +138,15 @@ export function ProfileMobile() { justifyContent="SpaceBetween" style={{ width: '100%', minWidth: '100%' }} > + + + + + Account + + + + + openSettings('account')} + > + + Edit profile + + - + @@ -209,7 +236,8 @@ export function ProfileMobile() { {(logout, setLogout) => ( - + <> + setLogout(true)} > - Logout + Logout {logout && ( }> @@ -234,9 +262,10 @@ export function ProfileMobile() { )} - + )} +
diff --git a/src/app/pages/client/sidebar/UserMenuTab.tsx b/src/app/pages/client/sidebar/UserMenuTab.tsx index fcc5b2ffd..ae516cdac 100644 --- a/src/app/pages/client/sidebar/UserMenuTab.tsx +++ b/src/app/pages/client/sidebar/UserMenuTab.tsx @@ -8,8 +8,6 @@ import { Chip, Dialog, Header, - Icon, - Icons, Line, Menu, MenuItem, @@ -38,7 +36,7 @@ import { createLogger } from '$utils/debug'; import type { Session } from '$state/sessions'; import { activeSessionIdAtom, backgroundUnreadCountsAtom, sessionsAtom } from '$state/sessions'; import { UnreadBadge, UnreadBadgeCenter } from '$components/unread-badge'; -import { Check, chipIcon, Plus } from '$components/icons/phosphor'; +import { Check, chipIcon, menuIcon, Plus } from '$components/icons/phosphor'; import { useSessionProfiles } from '$hooks/useSessionProfiles'; import { useClientConfig } from '$hooks/useClientConfig'; import { getHomePath, getLoginPath, getProfilePath, withSearchParam } from '$pages/pathUtils'; @@ -56,7 +54,14 @@ import { useUnverifiedDeviceCount, VerificationStatus, } from '$hooks/useDeviceVerificationStatus'; -import { ShieldWarningIcon } from '@phosphor-icons/react'; +import { + CaretDownIcon, + CaretRightIcon, + GearSixIcon, + PencilSimpleIcon, + ShieldWarningIcon, + UserIcon, +} from '@phosphor-icons/react'; import * as css from './UserMenuTab.css'; const log = createLogger('AccountSwitcherTab'); @@ -262,10 +267,8 @@ export function AccountMenuOption({ isMobile, isRight }: { isMobile: boolean; is } - after={ - - } + before={menuIcon(UserIcon)} + after={isOpen && isMobile ? menuIcon(CaretDownIcon) : menuIcon(CaretRightIcon)} style={{ position: 'relative', background: isMobile @@ -465,7 +468,7 @@ export function PresenceMenuOption({ display: 'flex', justifyContent: 'center', alignContent: 'center', - width: 18, + width: toRem(20), }} > {savingStatus ? ( @@ -479,9 +482,7 @@ export function PresenceMenuOption({ )} } - after={ - - } + after={isOpen && isMobile ? menuIcon(CaretDownIcon) : menuIcon(CaretRightIcon)} style={{ position: 'relative', background: isMobile @@ -766,7 +767,7 @@ export function UserMenuTab({ isBottom, isMobile }: { isBottom?: boolean; isMobi onClick={() => openSettings('account')} size="300" radii="300" - before={} + before={menuIcon(PencilSimpleIcon)} > Edit Profile @@ -790,7 +791,7 @@ export function UserMenuTab({ isBottom, isMobile }: { isBottom?: boolean; isMobi } + before={menuIcon(GearSixIcon)} onClick={() => openSettings()} >