about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-02-14 23:22:32 +0000
committerGitHub <noreply@github.com>2025-02-14 23:22:32 +0000
commit1e3b7feccfb59c70a97ed51b26bee8c6ea33348f (patch)
tree7f6c6979317cf3634b734dd06ccf68dfc2ec817f /src/Navigation.tsx
parentab4be7a9e144cbb658385976f21394a036043cb8 (diff)
downloadvoidsky-1e3b7feccfb59c70a97ed51b26bee8c6ea33348f.tar.zst
Screen for searching user's posts (#7622)
* search user's posts screen

* custom placeholder copy if self

* navigate to /profile/:handle

* add name to title

* show header on desktop
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 709a7b9ff..cf09406a6 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -91,6 +91,7 @@ import {VideoFeed} from '#/screens/VideoFeed'
 import {useTheme} from '#/alf'
 import {router} from '#/routes'
 import {Referrer} from '../modules/expo-bluesky-swiss-army'
+import {ProfileSearchScreen} from './screens/Profile/ProfileSearch'
 import {AboutSettingsScreen} from './screens/Settings/AboutSettings'
 import {AccessibilitySettingsScreen} from './screens/Settings/AccessibilitySettings'
 import {AccountSettingsScreen} from './screens/Settings/AccountSettings'
@@ -208,6 +209,13 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) {
         options={{title: title(msg`List`), requireAuth: true}}
       />
       <Stack.Screen
+        name="ProfileSearch"
+        getComponent={() => ProfileSearchScreen}
+        options={({route}) => ({
+          title: title(msg`Search @${route.params.name}'s posts`),
+        })}
+      />
+      <Stack.Screen
         name="PostThread"
         getComponent={() => PostThreadScreen}
         options={({route}) => ({