Slightly less verbose variable

This commit is contained in:
Paul Frazee 2023-11-29 17:37:15 -08:00
parent 4c7b9652db
commit 1140b05b83
3 changed files with 7 additions and 7 deletions

View file

@ -30,12 +30,12 @@ export function FeedsTabBar(
const {_} = useLingui()
const setDrawerOpen = useSetDrawerOpen()
const navigation = useNavigation<NavigationProp>()
const {feeds, hasPinnedCustomFeedOrList} = usePinnedFeedsInfos()
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) : []
const showFeedsLinkInTabBar = hasSession && !hasPinnedCustomFeedOrList
const showFeedsLinkInTabBar = hasSession && !hasPinnedCustom
const items = showFeedsLinkInTabBar
? pinnedDisplayNames.concat('Feeds ✨')
: pinnedDisplayNames