From 57fe76692a28459d8d33a0e25615a1a997163038 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 3 Mar 2025 23:02:31 +0000 Subject: [PATCH] ALF up bottom bar native --- src/view/shell/bottom-bar/BottomBar.tsx | 84 ++++++++++--------------- 1 file changed, 32 insertions(+), 52 deletions(-) diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index b404a8f38d..327c3fbbd6 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -15,7 +15,6 @@ import {useDedupe} from '#/lib/hooks/useDedupe' import {useHideBottomBarBorder} from '#/lib/hooks/useHideBottomBarBorder' import {useMinimalShellFooterTransform} from '#/lib/hooks/useMinimalShellTransform' import {useNavigationTabState} from '#/lib/hooks/useNavigationTabState' -import {usePalette} from '#/lib/hooks/usePalette' import {clamp} from '#/lib/numbers' import {getTabState, TabState} from '#/lib/routes/helpers' import {useGate} from '#/lib/statsig/statsig' @@ -57,7 +56,7 @@ type TabOptions = 'Home' | 'Search' | 'Messages' | 'Notifications' | 'MyProfile' export function BottomBar({navigation}: BottomTabBarProps) { const {hasSession, currentAccount} = useSession() - const pal = usePalette('default') + const t = useTheme() const {_} = useLingui() const safeAreaInsets = useSafeAreaInsets() const {footerHeight} = useShellLayout() @@ -147,8 +146,10 @@ export function BottomBar({navigation}: BottomTabBarProps) { ) : ( ) } @@ -183,13 +184,13 @@ export function BottomBar({navigation}: BottomTabBarProps) { isAtSearch ? ( ) : ( ) } @@ -204,12 +205,12 @@ export function BottomBar({navigation}: BottomTabBarProps) { isAtMessages ? ( ) : ( ) } @@ -236,12 +237,12 @@ export function BottomBar({navigation}: BottomTabBarProps) { isAtNotifications ? ( ) : ( ) } @@ -265,49 +266,28 @@ export function BottomBar({navigation}: BottomTabBarProps) { testID="bottomBarProfileBtn" icon={ - {isAtMyProfile ? ( - - - - ) : ( - - - - )} + ], + ]}> + + } onPress={onPressProfile} @@ -335,7 +315,7 @@ export function BottomBar({navigation}: BottomTabBarProps) { style={{flexDirection: 'row', alignItems: 'center', gap: 8}}> - +