diff options
author | Ansh <anshnanda10@gmail.com> | 2023-09-15 04:40:59 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 16:10:59 -0700 |
commit | 50f811666aa8999bd7c6cf0c823437f23ddce4c6 (patch) | |
tree | 8228bde0c0cfd3ec21451f0100f037ddaa2a601e /src/Navigation.tsx | |
parent | e643c434593927cb8ad85c32a1883b10548bc2f6 (diff) | |
download | voidsky-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.tsx | 5 |
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 |