From 7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 26 Jan 2023 11:25:52 -0600 Subject: Fix all type errors --- src/view/com/post-thread/PostThreadItem.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/view/com/post-thread/PostThreadItem.tsx') diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 92f7acc03..d39296285 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -3,7 +3,10 @@ import {observer} from 'mobx-react-lite' import {StyleSheet, View} from 'react-native' import Clipboard from '@react-native-clipboard/clipboard' import {AtUri} from '../../../third-party/uri' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' +import { + FontAwesomeIcon, + FontAwesomeIconStyle, +} from '@fortawesome/react-native-fontawesome' import {PostThreadViewPostModel} from '../../../state/models/post-thread-view' import {Link} from '../util/Link' import {RichText} from '../util/text/RichText' @@ -59,7 +62,7 @@ export const PostThreadItem = observer(function PostThreadItem({ replyTo: { uri: item.post.uri, cid: item.post.cid, - text: record.text as string, + text: record?.text as string, author: { handle: item.post.author.handle, displayName: item.post.author.displayName, @@ -103,7 +106,10 @@ export const PostThreadItem = observer(function PostThreadItem({ if (deleted) { return ( - + This post has been deleted. ) -- cgit 1.4.1