Skip to content

Commit b60a37b

Browse files
committed
feat: don't remove all feed UI on load
1 parent a9c954e commit b60a37b

File tree

1 file changed

+30
-32
lines changed
  • src/apps/feed/components/post-view-container

1 file changed

+30
-32
lines changed

src/apps/feed/components/post-view-container/index.tsx

+30-32
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,37 @@ export const PostView = ({ postId, isFeed, hideZidAction }: PostViewProps) => {
3232

3333
return (
3434
<Panel className={styles.Wrapper}>
35+
<PanelHeader>
36+
<BackButton backToId={post?.replyTo?.id} />
37+
</PanelHeader>
3538
{post !== undefined && (
36-
<>
37-
<PanelHeader>
38-
<BackButton backToId={post.replyTo?.id} />
39-
</PanelHeader>
40-
<PanelBody className={styles.Panel}>
41-
<div className={styles.Details}>
42-
<Post
43-
arweaveId={post.arweaveId}
44-
avatarUrl={post.sender?.avatarUrl}
45-
author={post.sender?.displaySubHandle}
46-
className={styles.Post}
47-
currentUserId={userId}
48-
loadAttachmentDetails={() => {}}
49-
media={post.media}
50-
meowPost={isFeed ? meowPostFeed : meowPost}
51-
messageId={post.id.toString()}
52-
nickname={post.sender?.firstName}
53-
numberOfReplies={post.numberOfReplies}
54-
ownerUserId={post.sender?.userId}
55-
reactions={post.reactions}
56-
text={post.message}
57-
timestamp={post.createdAt}
58-
userMeowBalance={userMeowBalance}
59-
variant='expanded'
60-
channelZid={post.channelZid}
61-
hideZidAction={hideZidAction}
62-
/>
63-
<CommentInput channelZid={post.channelZid} isFeed={isFeed} postId={postId} />
64-
</div>
65-
<Replies postId={postId} isFeed={isFeed} hideZidAction={hideZidAction} />
66-
</PanelBody>
67-
</>
39+
<PanelBody className={styles.Panel}>
40+
<div className={styles.Details}>
41+
<Post
42+
arweaveId={post.arweaveId}
43+
avatarUrl={post.sender?.avatarUrl}
44+
author={post.sender?.displaySubHandle}
45+
className={styles.Post}
46+
currentUserId={userId}
47+
loadAttachmentDetails={() => {}}
48+
media={post.media}
49+
meowPost={isFeed ? meowPostFeed : meowPost}
50+
messageId={post.id.toString()}
51+
nickname={post.sender?.firstName}
52+
numberOfReplies={post.numberOfReplies}
53+
ownerUserId={post.sender?.userId}
54+
reactions={post.reactions}
55+
text={post.message}
56+
timestamp={post.createdAt}
57+
userMeowBalance={userMeowBalance}
58+
variant='expanded'
59+
channelZid={post.channelZid}
60+
hideZidAction={hideZidAction}
61+
/>
62+
<CommentInput channelZid={post.channelZid} isFeed={isFeed} postId={postId} />
63+
</div>
64+
<Replies postId={postId} isFeed={isFeed} hideZidAction={hideZidAction} />
65+
</PanelBody>
6866
)}
6967
</Panel>
7068
);

0 commit comments

Comments
 (0)