Add hasPinnedCustomFeedOrList to usePinnedFeedsInfos hook

This commit is contained in:
Cooper Edmunds 2023-11-29 14:23:19 -05:00
parent 9fb2c29c67
commit ed391c346d
4 changed files with 12 additions and 5 deletions

View file

@ -79,7 +79,7 @@ function FeedsTabBarPublic() {
function FeedsTabBarTablet(
props: RenderTabBarFnProps & {testID?: string; onPressSelected: () => void},
) {
const feeds = usePinnedFeedsInfos()
const {feeds} = usePinnedFeedsInfos()
const pal = usePalette('default')
const {hasSession} = useSession()
const {headerMinimalShellTransform} = useMinimalShellMode()

View file

@ -26,7 +26,7 @@ export function FeedsTabBar(
const {isSandbox, hasSession} = useSession()
const {_} = useLingui()
const setDrawerOpen = useSetDrawerOpen()
const feeds = usePinnedFeedsInfos()
const {feeds} = usePinnedFeedsInfos()
const brandBlue = useColorSchemeStyle(s.brandBlue, s.blue3)
const {headerHeight} = useShellLayout()
const {headerMinimalShellTransform} = useMinimalShellMode()

View file

@ -11,7 +11,7 @@ import {usePinnedFeedsInfos} from '#/state/queries/feed'
export function DesktopFeeds() {
const pal = usePalette('default')
const {_} = useLingui()
const feeds = usePinnedFeedsInfos()
const {feeds} = usePinnedFeedsInfos()
const route = useNavigationState(state => {
if (!state) {