Passing in root prop for post comments

This commit is contained in:
Imbus 2024-03-12 17:59:28 +01:00
parent 2b12a83aa8
commit bbae426c09

View file

@ -24,7 +24,7 @@ export function SinglePost(): JSXElement {
<Show when={post()}> <Show when={post()}>
<PostSegment post={post()!} /> <PostSegment post={post()!} />
<Show when={login_ctx.loggedIn()}> <Show when={login_ctx.loggedIn()}>
<NewCommentInputArea parentPostId={parseInt(params.postid)} /> <NewCommentInputArea parentCommentId={null} parentPostId={parseInt(params.postid)} />
</Show> </Show>
<CommentSection postId={params.postid} /> <CommentSection postId={params.postid} />
</Show> </Show>