diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-01 14:25:41 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-01 14:25:41 -0500 |
commit | 8ae6e67eea8890f639dbaa9423e99cad5e28502f (patch) | |
tree | 720f9e4a4fdd5e394acd74b2d62676dc8c7b8ebc /src/view/com/post/Post.tsx | |
parent | 05055e184dbd1d103fc8bfc74ba86f0757937b14 (diff) | |
download | voidsky-8ae6e67eea8890f639dbaa9423e99cad5e28502f.tar.zst |
Rework the composer to a less buggy solution
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index b74bbfc42..b98274c1c 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -11,7 +11,6 @@ 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 {UserInfoText} from '../util/UserInfoText' import {RichText} from '../util/RichText' @@ -71,9 +70,7 @@ export const Post = observer(function Post({uri}: {uri: string}) { replyHref = `/profile/${urip.hostname}/post/${urip.rkey}` } const onPressReply = () => { - store.shell.openModal( - new ComposePostModel({replyTo: {uri: item.uri, cid: item.cid}}), - ) + store.shell.openComposer({replyTo: {uri: item.uri, cid: item.cid}}) } const onPressToggleRepost = () => { item |