diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-04-12 14:13:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 14:13:13 -0700 |
commit | ec5c4929c1c5677d22c923193ce04f3d69b72711 (patch) | |
tree | ccc097ea1565ae506e522a76a019bfeb6a63faf3 /src/Navigation.tsx | |
parent | 44039c68d678e99f9dc712f1a6dae87aed970ca3 (diff) | |
download | voidsky-ec5c4929c1c5677d22c923193ce04f3d69b72711.tar.zst |
PWI improvements (#3489)
* Enable home and feeds on the PWI * Add global SigninDialog to drive useRequireAuth() * Tweak desktop styles * Make the logo in leftnav PWI a clickable home link * Add label * Improve dialog on web * Fix query key * Go to home after signout from settings screen * Filter out feeds from the discover listing for logged out users which are known to break without auth * Update profile header follow/subscribe to give signin prompt * Show profile feeds tabs on pwi * Add language selector to account creation footer and pwi left nav desktop --------- Co-authored-by: dan <dan.abramov@gmail.com>
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 070c57960..99c0ebf3c 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -193,7 +193,7 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) { <Stack.Screen name="ProfileFeed" getComponent={() => ProfileFeedScreen} - options={{title: title(msg`Feed`), requireAuth: true}} + options={{title: title(msg`Feed`)}} /> <Stack.Screen name="ProfileFeedLikedBy" @@ -331,11 +331,7 @@ function HomeTabNavigator() { animationDuration: 250, contentStyle: pal.view, }}> - <HomeTab.Screen - name="Home" - getComponent={() => HomeScreen} - options={{requireAuth: true}} - /> + <HomeTab.Screen name="Home" getComponent={() => HomeScreen} /> {commonScreens(HomeTab)} </HomeTab.Navigator> ) @@ -371,11 +367,7 @@ function FeedsTabNavigator() { animationDuration: 250, contentStyle: pal.view, }}> - <FeedsTab.Screen - name="Feeds" - getComponent={() => FeedsScreen} - options={{requireAuth: true}} - /> + <FeedsTab.Screen name="Feeds" getComponent={() => FeedsScreen} /> {commonScreens(FeedsTab as typeof HomeTab)} </FeedsTab.Navigator> ) @@ -451,7 +443,7 @@ const FlatNavigator = () => { <Flat.Screen name="Home" getComponent={() => HomeScreen} - options={{title: title(msg`Home`), requireAuth: true}} + options={{title: title(msg`Home`)}} /> <Flat.Screen name="Search" @@ -461,7 +453,7 @@ const FlatNavigator = () => { <Flat.Screen name="Feeds" getComponent={() => FeedsScreen} - options={{title: title(msg`Feeds`), requireAuth: true}} + options={{title: title(msg`Feeds`)}} /> <Flat.Screen name="Notifications" |