diff options
Diffstat (limited to 'src/view/com/post-thread')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 12 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 2 |
2 files changed, 1 insertions, 13 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 diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index eb420a40e..83aac1010 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -21,11 +21,9 @@ const PARENT_REPLY_LINE_LENGTH = 8 export const PostThreadItem = observer(function PostThreadItem({ item, - onPressShare, onPostReply, }: { item: PostThreadViewPostModel - onPressShare: (_uri: string) => void onPostReply: () => void }) { const store = useStores() |