about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authorJaz <ericvolp12@gmail.com>2023-05-17 21:19:20 -0700
committerGitHub <noreply@github.com>2023-05-17 21:19:20 -0700
commit7f76c2d67e62ba2d10e8b17673a7bbcf7248564f (patch)
treeece7f72b04ee4bb39d4118b0b520683deddaa972 /src/Navigation.tsx
parentac3a95dc7228ad3d1d1cb7c5e7e26968009173bb (diff)
parent0ca096138a690f036828c49f9e95cf394b1a4339 (diff)
downloadvoidsky-7f76c2d67e62ba2d10e8b17673a7bbcf7248564f.tar.zst
Merge branch 'main' into inherit_system_theme
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 17bb3c159..09631701f 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -28,7 +28,6 @@ import {isNative} from 'platform/detection'
 import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle'
 import {router} from './routes'
 import {usePalette} from 'lib/hooks/usePalette'
-import {useUnreadCountLabel} from 'lib/hooks/useUnreadCountLabel'
 import {useStores} from './state'
 
 import {HomeScreen} from './view/screens/Home'
@@ -296,9 +295,9 @@ const MyProfileTabNavigator = observer(() => {
  * The FlatNavigator is used by Web to represent the routes
  * in a single ("flat") stack.
  */
-function FlatNavigator() {
+const FlatNavigator = observer(() => {
   const pal = usePalette('default')
-  const unreadCountLabel = useUnreadCountLabel()
+  const unreadCountLabel = useStores().me.notifications.unreadCountLabel
   const title = (page: string) => bskyTitle(page, unreadCountLabel)
   return (
     <Flat.Navigator
@@ -327,7 +326,7 @@ function FlatNavigator() {
       {commonScreens(Flat as typeof HomeTab, unreadCountLabel)}
     </Flat.Navigator>
   )
-}
+})
 
 /**
  * The RoutesContainer should wrap all components which need access