Guard against following tab stub being used un-authed (#2013)
parent
cf1b0b1881
commit
bdabfa9d38
|
@ -81,9 +81,10 @@ function FeedsTabBarTablet(
|
||||||
) {
|
) {
|
||||||
const feeds = usePinnedFeedsInfos()
|
const feeds = usePinnedFeedsInfos()
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
|
const {hasSession} = useSession()
|
||||||
const {headerMinimalShellTransform} = useMinimalShellMode()
|
const {headerMinimalShellTransform} = useMinimalShellMode()
|
||||||
const {headerHeight} = useShellLayout()
|
const {headerHeight} = useShellLayout()
|
||||||
const items = feeds.map(f => f.displayName)
|
const items = hasSession ? feeds.map(f => f.displayName) : []
|
||||||
|
|
||||||
return (
|
return (
|
||||||
// @ts-ignore the type signature for transform wrong here, translateX and translateY need to be in separate objects -prf
|
// @ts-ignore the type signature for transform wrong here, translateX and translateY need to be in separate objects -prf
|
||||||
|
|
|
@ -30,7 +30,7 @@ export function FeedsTabBar(
|
||||||
const brandBlue = useColorSchemeStyle(s.brandBlue, s.blue3)
|
const brandBlue = useColorSchemeStyle(s.brandBlue, s.blue3)
|
||||||
const {headerHeight} = useShellLayout()
|
const {headerHeight} = useShellLayout()
|
||||||
const {headerMinimalShellTransform} = useMinimalShellMode()
|
const {headerMinimalShellTransform} = useMinimalShellMode()
|
||||||
const items = feeds.map(f => f.displayName)
|
const items = hasSession ? feeds.map(f => f.displayName) : []
|
||||||
|
|
||||||
const onPressAvi = React.useCallback(() => {
|
const onPressAvi = React.useCallback(() => {
|
||||||
setDrawerOpen(true)
|
setDrawerOpen(true)
|
||||||
|
|
Loading…
Reference in New Issue