From cc8a1702043cfbd783f4caa61ab9eb8aeb421072 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 21 Jul 2022 19:55:04 -0500 Subject: Add profile view --- src/view/com/post-thread/PostThread.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/view/com/post-thread/PostThread.tsx') diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 9622ceb49..3623abde4 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -30,7 +30,8 @@ export const PostThread = observer(function PostThread({ newView.setup().catch(err => console.error('Failed to fetch thread', err)) }, [uri, view?.params.uri, store]) - // not yet setup + // loading + // = if ( !view || (view.isLoading && !view.isRefreshing) || @@ -44,6 +45,7 @@ export const PostThread = observer(function PostThread({ } // error + // = if (view.hasError) { return ( @@ -52,7 +54,8 @@ export const PostThread = observer(function PostThread({ ) } - // rendering + // loaded + // = const posts = Array.from(flattenThread(view.thread)) const renderItem = ({item}: {item: PostThreadViewPostModel}) => ( -- cgit 1.4.1