fix replying

This commit is contained in:
Your Name 2023-01-17 08:58:19 +02:00
parent c1c376dbd6
commit 41bb7695f1
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { Link } from "@remix-run/react";
export function ThreadReply({ post }) {
export function ThreadReply({ post, setReplying }) {
return (
<li
id={`${post.id}`}

View File

@ -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>