about summary refs log tree commit diff
path: root/src/lib/routes/helpers.ts
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-04-18 09:19:37 -0700
committerGitHub <noreply@github.com>2023-04-18 11:19:37 -0500
commit10621e86e4379ff05b2262a659b8512d80203a4b (patch)
treefdc91b7db00526f945d9463b732785da6cceb5c7 /src/lib/routes/helpers.ts
parent2509290fdd2b20c76c302d4962216f5d2d2b5a73 (diff)
downloadvoidsky-10621e86e4379ff05b2262a659b8512d80203a4b.tar.zst
APP-70 give profile its own tab mobile (#469)
* add prebuild command to package.json

* add ProfileTab navigator and screen

* add prop to remove back button from profile

* fix MyProfileTabNavigatorParams type

* fix dep array for rendering ProfileHeader

* just added ts-ignore

* enable opening drawer in profile tab

* clean up useNavigationTabState

* clean up code

* fix hideBackButton code flow
Diffstat (limited to 'src/lib/routes/helpers.ts')
-rw-r--r--src/lib/routes/helpers.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/routes/helpers.ts b/src/lib/routes/helpers.ts
index be76b9669..cfa6ae53b 100644
--- a/src/lib/routes/helpers.ts
+++ b/src/lib/routes/helpers.ts
@@ -20,7 +20,8 @@ export function isStateAtTabRoot(state: State | undefined) {
   return (
     isTab(currentRoute.name, 'Home') ||
     isTab(currentRoute.name, 'Search') ||
-    isTab(currentRoute.name, 'Notifications')
+    isTab(currentRoute.name, 'Notifications') ||
+    isTab(currentRoute.name, 'MyProfile')
   )
 }