about summary refs log tree commit diff
path: root/src/view/shell/index.web.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-10 11:31:36 -0600
committerGitHub <noreply@github.com>2023-11-10 11:31:36 -0600
commit6513055d02c5f8981f38bface3514af3472474d9 (patch)
tree0d687d4ef59b20a0b75d8e42171c6fafd9e0d36c /src/view/shell/index.web.tsx
parent8d7475c13069f99170b40d696a7371c94020ef46 (diff)
parent436a14eabb4fe2238ff6048f41042433c0e07268 (diff)
downloadvoidsky-6513055d02c5f8981f38bface3514af3472474d9.tar.zst
Merge pull request #1860 from bluesky-social/eric/startup
Web login/signup and shell
Diffstat (limited to 'src/view/shell/index.web.tsx')
-rw-r--r--src/view/shell/index.web.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx
index 792499521..a74cd126f 100644
--- a/src/view/shell/index.web.tsx
+++ b/src/view/shell/index.web.tsx
@@ -24,6 +24,7 @@ import {
   useOnboardingState,
 } from '#/state/shell'
 import {useModalControls} from '#/state/modals'
+import {useSession} from '#/state/session'
 
 const ShellInner = observer(function ShellInnerImpl() {
   const store = useStores()
@@ -33,6 +34,8 @@ const ShellInner = observer(function ShellInnerImpl() {
   const onboardingState = useOnboardingState()
   const {isDesktop, isMobile} = useWebMediaQueries()
   const navigator = useNavigation<NavigationProp>()
+  const {hasSession} = useSession()
+
   useAuxClick()
 
   useEffect(() => {
@@ -44,8 +47,7 @@ const ShellInner = observer(function ShellInnerImpl() {
   }, [navigator, store.shell, setDrawerOpen, closeModal])
 
   const showBottomBar = isMobile && !onboardingState.isActive
-  const showSideNavs =
-    !isMobile && store.session.hasSession && !onboardingState.isActive
+  const showSideNavs = !isMobile && hasSession && !onboardingState.isActive
   return (
     <View style={[s.hContentRegion, {overflow: 'hidden'}]}>
       <View style={s.hContentRegion}>