diff options
author | Eric Bailey <git@esb.lol> | 2023-11-10 09:59:04 -0600 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2023-11-10 09:59:04 -0600 |
commit | 436a14eabb4fe2238ff6048f41042433c0e07268 (patch) | |
tree | 047882fe839963796eaa31e908702e3ccd9e86e0 /src/view/shell/desktop/RightNav.tsx | |
parent | d0d93168d4a33c9fc06f84fd3aa98bef6f5f90f0 (diff) | |
download | voidsky-436a14eabb4fe2238ff6048f41042433c0e07268.tar.zst |
Pare down session as much as possible
Diffstat (limited to 'src/view/shell/desktop/RightNav.tsx')
-rw-r--r-- | src/view/shell/desktop/RightNav.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index cb62b4be2..98f54c7ed 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -17,10 +17,9 @@ import {useModalControls} from '#/state/modals' import {useSession} from '#/state/session' export const DesktopRightNav = observer(function DesktopRightNavImpl() { - const store = useStores() const pal = usePalette('default') const palError = usePalette('error') - const {hasSession, currentAccount} = useSession() + const {isSandbox, hasSession, currentAccount} = useSession() const {isTablet} = useWebMediaQueries() if (isTablet) { @@ -32,7 +31,7 @@ export const DesktopRightNav = observer(function DesktopRightNavImpl() { {hasSession && <DesktopSearch />} {hasSession && <DesktopFeeds />} <View style={styles.message}> - {store.session.isSandbox ? ( + {isSandbox ? ( <View style={[palError.view, styles.messageLine, s.p10]}> <Text type="md" style={[palError.text, s.bold]}> SANDBOX. Posts and accounts are not permanent. |