about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-14 17:46:27 -0600
committerGitHub <noreply@github.com>2023-12-14 15:46:27 -0800
commit1111108efee528d94a0ec5a6cb714aa09f6237db (patch)
treec15dbcf2f05c66c154216483ba0c5da69b806fdc /src/Navigation.tsx
parent7897dd24a14e65d8ab1aa0e474a09e0628da31b7 (diff)
downloadvoidsky-1111108efee528d94a0ec5a6cb714aa09f6237db.tar.zst
Some brand, some pwi (#2212)
* Add logo to left nav in logged out

* Protect last routes

* Hide links in left nav, hide nav

* Replace bottom bar for pwi

* Remove same links from drawer

* Hide reply prompt

* Allow search
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 252699e53..c9f927219 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -292,7 +292,11 @@ function HomeTabNavigator() {
         animationDuration: 250,
         contentStyle,
       }}>
-      <HomeTab.Screen name="Home" getComponent={() => HomeScreen} />
+      <HomeTab.Screen
+        name="Home"
+        getComponent={() => HomeScreen}
+        options={{requireAuth: true}}
+      />
       {commonScreens(HomeTab)}
     </HomeTab.Navigator>
   )
@@ -402,7 +406,7 @@ const FlatNavigator = () => {
       <Flat.Screen
         name="Home"
         getComponent={() => HomeScreen}
-        options={{title: title('Home')}}
+        options={{title: title('Home'), requireAuth: true}}
       />
       <Flat.Screen
         name="Search"
@@ -412,7 +416,7 @@ const FlatNavigator = () => {
       <Flat.Screen
         name="Feeds"
         getComponent={() => FeedsScreen}
-        options={{title: title('Feeds')}}
+        options={{title: title('Feeds'), requireAuth: true}}
       />
       <Flat.Screen
         name="Notifications"