about summary refs log tree commit diff
path: root/src/view/screens/PostThread.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-17 16:01:29 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-17 16:01:29 -0600
commita3bca154c4d8c0c0c42d56d61b2ab2188204710e (patch)
tree56d9eb9be13cf368b9fe2a2845919ae09774526b /src/view/screens/PostThread.tsx
parentb2160ae15952baf19d7375db2de77ce8d969b44d (diff)
downloadvoidsky-a3bca154c4d8c0c0c42d56d61b2ab2188204710e.tar.zst
Improve reliability of screen titles
Diffstat (limited to 'src/view/screens/PostThread.tsx')
-rw-r--r--src/view/screens/PostThread.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/PostThread.tsx b/src/view/screens/PostThread.tsx
index fc804f61e..69dda7426 100644
--- a/src/view/screens/PostThread.tsx
+++ b/src/view/screens/PostThread.tsx
@@ -6,14 +6,14 @@ import {PostThread as PostThreadComponent} from '../com/post-thread/PostThread'
 import {ScreenParams} from '../routes'
 import {useStores} from '../../state'
 
-export const PostThread = ({visible, params}: ScreenParams) => {
+export const PostThread = ({navIdx, visible, params}: ScreenParams) => {
   const store = useStores()
   const {name, rkey} = params
   const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
 
   useEffect(() => {
     if (visible) {
-      store.nav.setTitle(`Post by ${name}`)
+      store.nav.setTitle(navIdx, `Post by ${name}`)
     }
   }, [visible, store.nav, name])