29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
diff --git a/src/view/com/home/HomeHeader.tsx b/src/view/com/home/HomeHeader.tsx
|
|
--- a/src/view/com/home/HomeHeader.tsx
|
|
+++ b/src/view/com/home/HomeHeader.tsx
|
|
@@ -3,7 +3,6 @@ import {useNavigation} from '@react-navigation/native'
|
|
|
|
import {type NavigationProp} from '#/lib/routes/types'
|
|
import {type FeedSourceInfo} from '#/state/queries/feed'
|
|
-import {useSession} from '#/state/session'
|
|
import {type RenderTabBarFnProps} from '#/view/com/pager/Pager'
|
|
import {TabBar} from '../pager/TabBar'
|
|
import {HomeHeaderLayout} from './HomeHeaderLayout'
|
|
@@ -16,17 +15,15 @@ export function HomeHeader(
|
|
) {
|
|
const {feeds, onSelect: onSelectProp} = props
|
|
- const {hasSession} = useSession()
|
|
const navigation = useNavigation<NavigationProp>()
|
|
|
|
const hasPinnedCustom = React.useMemo<boolean>(() => {
|
|
- if (!hasSession) return false
|
|
return feeds.some(tab => {
|
|
const isFollowing = tab.uri === 'following'
|
|
return !isFollowing
|
|
})
|
|
- }, [feeds, hasSession])
|
|
+ }, [feeds])
|
|
|
|
const items = React.useMemo(() => {
|
|
const pinnedNames = feeds.map(f => f.displayName)
|