about summary refs log tree commit diff
path: root/src/view/com/post/Post.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-05 14:16:48 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-05 14:16:48 -0500
commitcb310ab1c1e4d2beb6f39b39e4972b9ae21f9849 (patch)
tree11c2c4c531c65dbf0f48293fd2eb35dbe5a20323 /src/view/com/post/Post.tsx
parent41bbe2b60bf37f52ab8404a275a523c4b4b97a15 (diff)
downloadvoidsky-cb310ab1c1e4d2beb6f39b39e4972b9ae21f9849.tar.zst
Rewrite the post composer as a modal
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r--src/view/com/post/Post.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx
index 2de7432bd..a6580fa5a 100644
--- a/src/view/com/post/Post.tsx
+++ b/src/view/com/post/Post.tsx
@@ -11,6 +11,7 @@ import {
 } from 'react-native'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {PostThreadViewModel} from '../../../state/models/post-thread-view'
+import {ComposePostModel} from '../../../state/models/shell'
 import {Link} from '../util/Link'
 import {useStores} from '../../../state'
 import {s, colors} from '../../lib/styles'
@@ -63,7 +64,7 @@ export const Post = observer(function Post({uri}: {uri: string}) {
   const authorHref = `/profile/${item.author.name}`
   const authorTitle = item.author.name
   const onPressReply = () => {
-    store.nav.navigate(`/composer?replyTo=${item.uri}`)
+    store.shell.openModal(new ComposePostModel(item.uri))
   }
   const onPressToggleRepost = () => {
     item