diff options
author | Eric Bailey <git@esb.lol> | 2023-12-14 17:46:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 15:46:27 -0800 |
commit | 1111108efee528d94a0ec5a6cb714aa09f6237db (patch) | |
tree | c15dbcf2f05c66c154216483ba0c5da69b806fdc /src/view/screens/PostThread.tsx | |
parent | 7897dd24a14e65d8ab1aa0e474a09e0628da31b7 (diff) | |
download | voidsky-1111108efee528d94a0ec5a6cb714aa09f6237db.tar.zst |
Some brand, some pwi (#2212)
* Add logo to left nav in logged out * Protect last routes * Hide links in left nav, hide nav * Replace bottom bar for pwi * Remove same links from drawer * Hide reply prompt * Allow search
Diffstat (limited to 'src/view/screens/PostThread.tsx')
-rw-r--r-- | src/view/screens/PostThread.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/screens/PostThread.tsx b/src/view/screens/PostThread.tsx index 8e9e399f5..9f50c8b73 100644 --- a/src/view/screens/PostThread.tsx +++ b/src/view/screens/PostThread.tsx @@ -24,11 +24,13 @@ import {useResolveUriQuery} from '#/state/queries/resolve-uri' import {ErrorMessage} from '../com/util/error/ErrorMessage' import {CenteredView} from '../com/util/Views' import {useComposerControls} from '#/state/shell/composer' +import {useSession} from '#/state/session' type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostThread'> export function PostThreadScreen({route}: Props) { const queryClient = useQueryClient() const {_} = useLingui() + const {hasSession} = useSession() const {fabMinimalShellTransform} = useMinimalShellMode() const setMinimalShellMode = useSetMinimalShellMode() const {openComposer} = useComposerControls() @@ -89,7 +91,7 @@ export function PostThreadScreen({route}: Props) { /> )} </View> - {isMobile && canReply && ( + {isMobile && canReply && hasSession && ( <Animated.View style={[ styles.prompt, |