From 846e24465a599d7f2bc9c638a8c566f255443062 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 13 Dec 2023 11:44:00 -0600 Subject: [PATCH] Add butter icon, spread it --- src/view/com/pager/FeedsTabBarMobile.tsx | 13 +++++-------- src/view/icons/Logo.tsx | 20 ++++++++++++++++++++ src/view/{icons.ts => icons/index.tsx} | 0 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 src/view/icons/Logo.tsx rename src/view/{icons.ts => icons/index.tsx} (100%) diff --git a/src/view/com/pager/FeedsTabBarMobile.tsx b/src/view/com/pager/FeedsTabBarMobile.tsx index 882b6cfc54..024f9bfab3 100644 --- a/src/view/com/pager/FeedsTabBarMobile.tsx +++ b/src/view/com/pager/FeedsTabBarMobile.tsx @@ -3,12 +3,9 @@ import {StyleSheet, TouchableOpacity, View} from 'react-native' import {TabBar} from 'view/com/pager/TabBar' import {RenderTabBarFnProps} from 'view/com/pager/Pager' import {usePalette} from 'lib/hooks/usePalette' -import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' import {Link} from '../util/Link' -import {Text} from '../util/text/Text' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {FontAwesomeIconStyle} from '@fortawesome/react-native-fontawesome' -import {s} from 'lib/styles' import {HITSLOP_10} from 'lib/constants' import Animated from 'react-native-reanimated' import {msg} from '@lingui/macro' @@ -21,17 +18,17 @@ import {usePinnedFeedsInfos} from '#/state/queries/feed' import {isWeb} from 'platform/detection' import {useNavigation} from '@react-navigation/native' import {NavigationProp} from 'lib/routes/types' +import {Logo} from '#/view/icons/Logo' export function FeedsTabBar( props: RenderTabBarFnProps & {testID?: string; onPressSelected: () => void}, ) { const pal = usePalette('default') - const {isSandbox, hasSession} = useSession() + const {hasSession} = useSession() const {_} = useLingui() const setDrawerOpen = useSetDrawerOpen() const navigation = useNavigation() const {feeds, hasPinnedCustom} = usePinnedFeedsInfos() - const brandBlue = useColorSchemeStyle(s.brandBlue, s.blue3) const {headerHeight} = useShellLayout() const {headerMinimalShellTransform} = useMinimalShellMode() const pinnedDisplayNames = hasSession ? feeds.map(f => f.displayName) : [] @@ -86,9 +83,9 @@ export function FeedsTabBar( /> - - {isSandbox ? 'SANDBOX' : 'Bluesky'} - + + + {hasSession && ( + + + ) +} diff --git a/src/view/icons.ts b/src/view/icons/index.tsx similarity index 100% rename from src/view/icons.ts rename to src/view/icons/index.tsx