Update post.tsx

This commit is contained in:
Tom (plebeius.eth)
2025-03-02 15:54:35 +01:00
parent 0a7cda31bf
commit 67dcd7ffd3
+2 -2
View File
@@ -64,7 +64,7 @@ const PostPage = () => {
const subplebbit = useSubplebbit({ subplebbitAddress }); const subplebbit = useSubplebbit({ subplebbitAddress });
const { createdAt, description, rules, shortAddress, suggested, title } = subplebbit; const { createdAt, description, rules, shortAddress, suggested, title } = subplebbit;
const { activeCid, threadCid, closeModal, showReplyModal, scrollY, subplebbitAddress: postSubplebbitAddress } = useReplyModal(); const { activeCid, threadCid, closeModal, openReplyModal, showReplyModal, scrollY, subplebbitAddress: postSubplebbitAddress } = useReplyModal();
const comment = useComment({ commentCid }); const comment = useComment({ commentCid });
@@ -119,7 +119,7 @@ const PostPage = () => {
) : isInRulesView ? ( ) : isInRulesView ? (
<SubplebbitRules createdAt={createdAt} rules={rules} subplebbitAddress={subplebbitAddress} /> <SubplebbitRules createdAt={createdAt} rules={rules} subplebbitAddress={subplebbitAddress} />
) : ( ) : (
<Post post={post} showAllReplies={true} /> <Post post={post} showAllReplies={true} openReplyModal={openReplyModal} />
)} )}
</div> </div>
); );