29 lines
922 B
Diff
29 lines
922 B
Diff
--- a/src/view/com/home/HomeHeader.tsx
|
|
+++ b/src/view/com/home/HomeHeader.tsx
|
|
@@ -3,7 +3,6 @@
|
|
|
|
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,16 +15,14 @@
|
|
},
|
|
) {
|
|
const {feeds, onSelect: onSelectProp} = props
|
|
- const {hasSession} = useSession()
|
|
const navigation = useNavigation<NavigationProp>()
|
|
|
|
const hasPinnedCustom = useMemo<boolean>(() => {
|
|
- if (!hasSession) return false
|
|
return feeds.some(tab => {
|
|
const isFollowing = tab.uri === 'following'
|
|
return !isFollowing
|
|
})
|
|
- }, [feeds, hasSession])
|
|
+ }, [feeds])
|
|
|
|
const items = useMemo(() => {
|
|
const pinnedNames = feeds.map(f => f.displayName)
|