diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-21 16:07:26 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-21 16:07:26 -0600 |
commit | ed146a582c140b9a472298390dafbc07bd06cf60 (patch) | |
tree | bd540e4a84244fdbdbdf5fde412fc4a179b6dae5 /src/view/com/post-thread/PostThread.tsx | |
parent | 39058cd36a9839df0e0c7e30ba486a09e30f169c (diff) | |
download | voidsky-ed146a582c140b9a472298390dafbc07bd06cf60.tar.zst |
Add web linking and proper share controls
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 6b7f96e06..d819cc76c 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -6,7 +6,6 @@ import { PostThreadViewPostModel, } from '../../../state/models/post-thread-view' import {useStores} from '../../../state' -import {SharePostModel} from '../../../state/models/shell-ui' import {PostThreadItem} from './PostThreadItem' import {ErrorMessage} from '../util/ErrorMessage' @@ -17,11 +16,6 @@ export const PostThread = observer(function PostThread({ uri: string view: PostThreadViewModel }) { - const store = useStores() - - const onPressShare = (uri: string) => { - store.shell.openModal(new SharePostModel(uri)) - } const onRefresh = () => { view?.refresh().catch(err => console.error('Failed to refresh', err)) } @@ -55,11 +49,7 @@ export const PostThread = observer(function PostThread({ // = const posts = view.thread ? Array.from(flattenThread(view.thread)) : [] const renderItem = ({item}: {item: PostThreadViewPostModel}) => ( - <PostThreadItem - item={item} - onPressShare={onPressShare} - onPostReply={onRefresh} - /> + <PostThreadItem item={item} onPostReply={onRefresh} /> ) return ( <FlatList |