Skip to content

Commit 8718bcd

Browse files
committed
small changes
Signed-off-by: Shea <nu@she-a.eu>
1 parent 2179d9d commit 8718bcd

3 files changed

Lines changed: 42 additions & 23 deletions

File tree

src/app/pages/client/navigate/Navigate.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,11 @@ export function Navigate() {
7171
<Box grow="Yes" direction="Column" style={{ background: color.Background.Container }}>
7272
<PageNavHeader size="600">
7373
<Box grow="Yes" gap="300" justifyContent="Center">
74-
{!hideText ? (
75-
<Box grow="Yes">
76-
<Text size="H4" align="Center" truncate style={{ width: '100%' }}>
77-
Navigate
78-
</Text>
79-
</Box>
80-
) : (
81-
sizedIcon(SquaresFour, '200', { filled: true })
82-
)}
74+
<Box grow="Yes">
75+
<Text size="H4" align="Center" truncate style={{ width: '100%' }}>
76+
Navigate
77+
</Text>
78+
</Box>
8379
</Box>
8480
</PageNavHeader>
8581
<Scroll hideTrack visibility="Hover">

src/app/pages/client/profile/Profile.tsx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { useUserProfile } from '$hooks/useUserProfile';
3434
import type { SettingsMenuItem } from '$features/settings';
3535
import { settingsMenuIcons, settingsSections, useOpenSettings } from '$features/settings';
3636
import { UserQuickTools } from '../sidebar/UserQuickTools';
37-
import { CaretDownIcon, CaretRightIcon, SignOutIcon } from '@phosphor-icons/react';
37+
import { CaretDownIcon, CaretRightIcon, PencilSimpleIcon, SignOutIcon } from '@phosphor-icons/react';
3838
import { UseStateProvider } from '$components/UseStateProvider';
3939
import { FocusTrap } from 'focus-trap-react';
4040
import { LogoutDialog } from '$components/LogoutDialog';
@@ -133,6 +133,15 @@ export function ProfileMobile() {
133133
justifyContent="SpaceBetween"
134134
style={{ width: '100%', minWidth: '100%' }}
135135
>
136+
<PageNavHeader size="600">
137+
<Box grow="Yes" gap="300" justifyContent="Center">
138+
<Box grow="Yes">
139+
<Text size="H4" align="Center" truncate style={{ width: '100%' }}>
140+
Account
141+
</Text>
142+
</Box>
143+
</Box>
144+
</PageNavHeader>
136145
<Menu
137146
style={{
138147
minWidth: '100%',
@@ -159,6 +168,19 @@ export function ProfileMobile() {
159168

160169
<Box direction="Column" gap="100" style={{ padding: config.space.S100 }}>
161170
<UnverifiedMenuOption />
171+
<MenuItem
172+
size="300"
173+
radii="300"
174+
before={menuIcon(PencilSimpleIcon)}
175+
style={{
176+
background: isSettingsOpen ? color.Surface.Container : color.Background.Container,
177+
}}
178+
onClick={() => openSettings('account')}
179+
>
180+
<Text style={{ flexGrow: 1 }} size="T300">
181+
Edit profile
182+
</Text>
183+
</MenuItem>
162184
</Box>
163185
<Line variant="Surface" size="300" />
164186

src/app/pages/client/sidebar/UserMenuTab.tsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import {
88
Chip,
99
Dialog,
1010
Header,
11-
Icon,
12-
Icons,
1311
Line,
1412
Menu,
1513
MenuItem,
@@ -38,7 +36,7 @@ import { createLogger } from '$utils/debug';
3836
import type { Session } from '$state/sessions';
3937
import { activeSessionIdAtom, backgroundUnreadCountsAtom, sessionsAtom } from '$state/sessions';
4038
import { UnreadBadge, UnreadBadgeCenter } from '$components/unread-badge';
41-
import { Check, chipIcon, Plus } from '$components/icons/phosphor';
39+
import { Check, chipIcon, menuIcon, Plus } from '$components/icons/phosphor';
4240
import { useSessionProfiles } from '$hooks/useSessionProfiles';
4341
import { useClientConfig } from '$hooks/useClientConfig';
4442
import { getHomePath, getLoginPath, getProfilePath, withSearchParam } from '$pages/pathUtils';
@@ -56,7 +54,14 @@ import {
5654
useUnverifiedDeviceCount,
5755
VerificationStatus,
5856
} from '$hooks/useDeviceVerificationStatus';
59-
import { ShieldWarningIcon } from '@phosphor-icons/react';
57+
import {
58+
CaretDownIcon,
59+
CaretRightIcon,
60+
GearSixIcon,
61+
PencilSimpleIcon,
62+
ShieldWarningIcon,
63+
UserIcon,
64+
} from '@phosphor-icons/react';
6065
import * as css from './UserMenuTab.css';
6166

6267
const log = createLogger('AccountSwitcherTab');
@@ -262,10 +267,8 @@ export function AccountMenuOption({ isMobile, isRight }: { isMobile: boolean; is
262267
<MenuItem
263268
size="300"
264269
radii="300"
265-
before={<Icon size="100" src={Icons.User} />}
266-
after={
267-
<Icon size="100" src={isOpen && isMobile ? Icons.ChevronBottom : Icons.ChevronRight} />
268-
}
270+
before={menuIcon(UserIcon)}
271+
after={isOpen && isMobile ? menuIcon(CaretDownIcon) : menuIcon(CaretRightIcon)}
269272
style={{
270273
position: 'relative',
271274
background: isMobile
@@ -479,9 +482,7 @@ export function PresenceMenuOption({
479482
)}
480483
</div>
481484
}
482-
after={
483-
<Icon size="100" src={isOpen && isMobile ? Icons.ChevronBottom : Icons.ChevronRight} />
484-
}
485+
after={isOpen && isMobile ? menuIcon(CaretDownIcon) : menuIcon(CaretRightIcon)}
485486
style={{
486487
position: 'relative',
487488
background: isMobile
@@ -766,7 +767,7 @@ export function UserMenuTab({ isBottom, isMobile }: { isBottom?: boolean; isMobi
766767
onClick={() => openSettings('account')}
767768
size="300"
768769
radii="300"
769-
before={<Icon size="100" src={Icons.Pencil} />}
770+
before={menuIcon(PencilSimpleIcon)}
770771
>
771772
<Text style={{ flexGrow: 1 }} size="T300">
772773
Edit Profile
@@ -790,7 +791,7 @@ export function UserMenuTab({ isBottom, isMobile }: { isBottom?: boolean; isMobi
790791
<MenuItem
791792
size="300"
792793
radii="300"
793-
before={<Icon size="100" src={Icons.Setting} />}
794+
before={menuIcon(GearSixIcon)}
794795
onClick={() => openSettings()}
795796
>
796797
<Text style={{ flexGrow: 1 }} size="T300">

0 commit comments

Comments
 (0)