diff options
Diffstat (limited to 'src/view/shell/bottom-bar')
-rw-r--r-- | src/view/shell/bottom-bar/BottomBar.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 8ba74da2e..4758c5e01 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -75,6 +75,9 @@ export const BottomBar = observer(function BottomBarImpl({ const onPressProfile = React.useCallback(() => { onPressTab('MyProfile') }, [onPressTab]) + const onLongPressProfile = React.useCallback(() => { + store.shell.openModal({name: 'switch-account'}) + }, [store]) return ( <Animated.View @@ -202,6 +205,7 @@ export const BottomBar = observer(function BottomBarImpl({ </View> } onPress={onPressProfile} + onLongPress={onLongPressProfile} accessibilityRole="tab" accessibilityLabel="Profile" accessibilityHint="" |