fix replying
This commit is contained in:
parent
c1c376dbd6
commit
41bb7695f1
|
@ -1,6 +1,6 @@
|
|||
import { Link } from "@remix-run/react";
|
||||
|
||||
export function ThreadReply({ post }) {
|
||||
export function ThreadReply({ post, setReplying }) {
|
||||
return (
|
||||
<li
|
||||
id={`${post.id}`}
|
||||
|
|
|
@ -157,7 +157,7 @@ export default function Thread() {
|
|||
</div>
|
||||
<ul className="m-8 ">
|
||||
{data.posts.map((post) => (
|
||||
<ThreadReply key={post.id} post={post} />
|
||||
<ThreadReply key={post.id} setReplying={setReplying} post={post} />
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue