diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-13 23:30:12 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-03-13 23:30:12 -0500 |
commit | 774fb8371905473b88b26c350818aa6b4bf1bac2 (patch) | |
tree | ceee7f24ce3696b8890ef7bb3eb42bb04ba1078e /src/view/shell/desktop/RightNav.tsx | |
parent | b5c64a03b6cf91fb1699d2e87d3fded43a5dbb46 (diff) | |
download | voidsky-774fb8371905473b88b26c350818aa6b4bf1bac2.tar.zst |
Rework logged out state to preserve routing and work for web
Diffstat (limited to 'src/view/shell/desktop/RightNav.tsx')
-rw-r--r-- | src/view/shell/desktop/RightNav.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 58fb31392..3f196cb70 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -7,12 +7,14 @@ import {Text} from 'view/com/util/text/Text' import {TextLink} from 'view/com/util/Link' import {FEEDBACK_FORM_URL} from 'lib/constants' import {s} from 'lib/styles' +import {useStores} from 'state/index' export const DesktopRightNav = observer(function DesktopRightNav() { + const store = useStores() const pal = usePalette('default') return ( <View style={[styles.rightNav, pal.view]}> - <DesktopSearch /> + {store.session.hasSession && <DesktopSearch />} <View style={styles.message}> <Text type="md" style={[pal.textLight, styles.messageLine]}> Welcome to Bluesky! This is a beta application that's still in |