gate by testflight
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
|||||||
useLoggedOutViewControls,
|
useLoggedOutViewControls,
|
||||||
} from '#/state/shell/logged-out'
|
} from '#/state/shell/logged-out'
|
||||||
import {useSetMinimalShellMode} from '#/state/shell/minimal-mode'
|
import {useSetMinimalShellMode} from '#/state/shell/minimal-mode'
|
||||||
|
import {IS_DEV, IS_TESTFLIGHT} from 'lib/app-info'
|
||||||
import {NavigationProp} from 'lib/routes/types'
|
import {NavigationProp} from 'lib/routes/types'
|
||||||
import {useUsedStarterPack} from 'state/preferences/starter-pack'
|
import {useUsedStarterPack} from 'state/preferences/starter-pack'
|
||||||
import {ErrorBoundary} from '#/view/com/util/ErrorBoundary'
|
import {ErrorBoundary} from '#/view/com/util/ErrorBoundary'
|
||||||
@@ -47,7 +48,7 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) {
|
|||||||
? requestedAccountSwitchTo === 'new'
|
? requestedAccountSwitchTo === 'new'
|
||||||
? ScreenState.S_CreateAccount
|
? ScreenState.S_CreateAccount
|
||||||
: ScreenState.S_Login
|
: ScreenState.S_Login
|
||||||
: usedStarterPack?.uri
|
: usedStarterPack?.uri && (IS_TESTFLIGHT || IS_DEV)
|
||||||
? ScreenState.S_StarterPack
|
? ScreenState.S_StarterPack
|
||||||
: ScreenState.S_LoginOrCreateAccount,
|
: ScreenState.S_LoginOrCreateAccount,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import {useAgent, useSession} from '#/state/session'
|
|||||||
import {useSetDrawerSwipeDisabled, useSetMinimalShellMode} from '#/state/shell'
|
import {useSetDrawerSwipeDisabled, useSetMinimalShellMode} from '#/state/shell'
|
||||||
import {useComposerControls} from '#/state/shell/composer'
|
import {useComposerControls} from '#/state/shell/composer'
|
||||||
import {useAnalytics} from 'lib/analytics/analytics'
|
import {useAnalytics} from 'lib/analytics/analytics'
|
||||||
|
import {IS_DEV, IS_TESTFLIGHT} from 'lib/app-info'
|
||||||
import {useSetTitle} from 'lib/hooks/useSetTitle'
|
import {useSetTitle} from 'lib/hooks/useSetTitle'
|
||||||
import {ComposeIcon2} from 'lib/icons'
|
import {ComposeIcon2} from 'lib/icons'
|
||||||
import {CommonNavigatorParams, NativeStackScreenProps} from 'lib/routes/types'
|
import {CommonNavigatorParams, NativeStackScreenProps} from 'lib/routes/types'
|
||||||
@@ -199,7 +200,8 @@ function ProfileScreenLoaded({
|
|||||||
const showLikesTab = isMe
|
const showLikesTab = isMe
|
||||||
const showFeedsTab = isMe || (profile.associated?.feedgens || 0) > 0
|
const showFeedsTab = isMe || (profile.associated?.feedgens || 0) > 0
|
||||||
const showStarterPacksTab =
|
const showStarterPacksTab =
|
||||||
isMe || !!starterPacksQuery.data?.pages?.[0].starterPacks.length
|
(isMe || !!starterPacksQuery.data?.pages?.[0].starterPacks.length) &&
|
||||||
|
(IS_TESTFLIGHT || IS_DEV)
|
||||||
const showListsTab =
|
const showListsTab =
|
||||||
hasSession && (isMe || (profile.associated?.lists || 0) > 0)
|
hasSession && (isMe || (profile.associated?.lists || 0) > 0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user