about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-09-15 04:40:59 +0530
committerGitHub <noreply@github.com>2023-09-14 16:10:59 -0700
commit50f811666aa8999bd7c6cf0c823437f23ddce4c6 (patch)
tree8228bde0c0cfd3ec21451f0100f037ddaa2a601e /src/Navigation.tsx
parente643c434593927cb8ad85c32a1883b10548bc2f6 (diff)
downloadvoidsky-50f811666aa8999bd7c6cf0c823437f23ddce4c6.tar.zst
Fix Profile link from drawer on Mobile Web (#1437)
* 🗺️ fix an issue where web devices that see the Drawer couldn't access Profile from said Drawer

* fix routes on web

* handle profile button active state

* add hack for web navigation

* fix comment

---------

Co-authored-by: Micah Maligie <kerosuppi@gmail.com>
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index dac70dfc7..c16ff3a8c 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -348,7 +348,6 @@ const MyProfileTabNavigator = observer(function MyProfileTabNavigatorImpl() {
         component={ProfileScreen}
         initialParams={{
           name: store.me.did,
-          hideBackButton: true,
         }}
       />
       {commonScreens(MyProfileTab as typeof HomeTab)}
@@ -362,7 +361,9 @@ const MyProfileTabNavigator = observer(function MyProfileTabNavigatorImpl() {
  */
 const FlatNavigator = observer(function FlatNavigatorImpl() {
   const pal = usePalette('default')
-  const unreadCountLabel = useStores().me.notifications.unreadCountLabel
+  const store = useStores()
+  const unreadCountLabel = store.me.notifications.unreadCountLabel
+
   const title = (page: string) => bskyTitle(page, unreadCountLabel)
   return (
     <Flat.Navigator