From 1be2d395f868d57240122d35cc4b0238098f0d2b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 9 May 2024 22:06:20 -0500 Subject: [PATCH] Ditch feeds, drop size --- src/view/shell/bottom-bar/BottomBar.tsx | 40 ++-------------------- src/view/shell/bottom-bar/BottomBarWeb.tsx | 17 +-------- src/view/shell/desktop/LeftNav.tsx | 2 +- 3 files changed, 5 insertions(+), 54 deletions(-) diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 08b6e8a633..ea97b3ce26 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -36,10 +36,6 @@ import { Bell2_Filled_Corner0_Rounded as BellFilled, Bell2_Stroke2_Corner0_Rounded as Bell, } from '#/components/icons/Bell2' -import { - Hashtag_Filled_Corner0_Rounded as HashtagFilled, - Hashtag_Stroke2_Corner0_Rounded as Hashtag, -} from '#/components/icons/Hashtag' import { HomeOpen_Filled_Corner0_Rounded as HomeFilled, HomeOpen_Stoke2_Corner0_Rounded as Home, @@ -67,14 +63,8 @@ export function BottomBar({navigation}: BottomTabBarProps) { const safeAreaInsets = useSafeAreaInsets() const {track} = useAnalytics() const {footerHeight} = useShellLayout() - const { - isAtHome, - isAtSearch, - isAtFeeds, - isAtNotifications, - isAtMyProfile, - isAtMessages, - } = useNavigationTabState() + const {isAtHome, isAtSearch, isAtNotifications, isAtMyProfile, isAtMessages} = + useNavigationTabState() const numUnreadNotifications = useUnreadNotifications() const numUnreadMessages = useUnreadMessageCount() const {footerMinimalShellTransform} = useMinimalShellMode() @@ -85,7 +75,7 @@ export function BottomBar({navigation}: BottomTabBarProps) { const accountSwitchControl = useDialogControl() const playHaptic = useHaptics() const gate = useGate() - const iconWidth = 30 + const iconWidth = 28 const showSignIn = React.useCallback(() => { closeAllActiveElements() @@ -118,10 +108,6 @@ export function BottomBar({navigation}: BottomTabBarProps) { () => onPressTab('Search'), [onPressTab], ) - const onPressFeeds = React.useCallback( - () => onPressTab('Feeds'), - [onPressTab], - ) const onPressNotifications = React.useCallback( () => onPressTab('Notifications'), [onPressTab], @@ -196,26 +182,6 @@ export function BottomBar({navigation}: BottomTabBarProps) { accessibilityLabel={_(msg`Search`)} accessibilityHint="" /> - - ) : ( - - ) - } - onPress={onPressFeeds} - accessibilityRole="tab" - accessibilityLabel={_(msg`Feeds`)} - accessibilityHint="" - /> { closeAllActiveElements() @@ -105,17 +101,6 @@ export function BottomBarWeb() { {hasSession && ( <> - - {({isActive}) => { - const Icon = isActive ? HashtagFilled : Hashtag - return ( - - ) - }} - {({isActive}) => { const Icon = isActive ? BellFilled : Bell diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 4b7e34bee3..aff6fd736f 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -288,7 +288,7 @@ export function DesktopLeftNav() { const numUnreadNotifications = useUnreadNotifications() const numUnreadMessages = useUnreadMessageCount() const gate = useGate() - const iconWidth = isDesktop ? 28 : 32 + const iconWidth = 28 if (!hasSession && !isDesktop) { return null