From 91cfa74d8dc062be18fecae956822ef044c1dae0 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 6 Jan 2025 15:52:51 +0000 Subject: [PATCH] add chevron hover state --- src/view/shell/desktop/LeftNav.tsx | 31 +++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 41de05b8c8..0878fe64b0 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -41,6 +41,7 @@ import { BulletList_Filled_Corner0_Rounded as ListFilled, BulletList_Stroke2_Corner0_Rounded as List, } from '#/components/icons/BulletList' +import {ChevronBottom_Stroke2_Corner0_Rounded as ChevronDownIcon} from '#/components/icons/Chevron' import {EditBig_Stroke2_Corner0_Rounded as EditBig} from '#/components/icons/EditBig' import { Hashtag_Filled_Corner0_Rounded as HashtagFilled, @@ -76,7 +77,7 @@ function ProfileCard() { const {onPressSwitchAccount, pendingDid} = useAccountSwitcher() const {logoutEveryAccount} = useSessionApi() const {isLoading, data} = useProfilesQuery({ - handles: accounts.map(a => a.did), + handles: accounts.map(acc => acc.did), }) const profiles = data?.profiles const signOutPromptControl = Prompt.usePromptControl() @@ -84,6 +85,7 @@ function ProfileCard() { const {_} = useLingui() const {setShowLoggedOut} = useLoggedOutViewControls() const closeEverything = useCloseAllActiveElements() + const t = useTheme() const size = 48 @@ -105,13 +107,28 @@ function ProfileCard() { {!isLoading && profile ? ( - {({props}) => ( + {({props, state}) => ( )} @@ -136,7 +153,15 @@ function ProfileCard() { onPress={() => onPressSwitchAccount(other.account, 'SwitchAccount') }> - + {sanitizeHandle( other.profile?.handle ?? other.account.handle,