Refactor discussion component

This commit is contained in:
Rūdolfs Ošiņš
2025-02-19 15:25:50 -06:00
parent 6c6484f2a3
commit ba79a3d22f
4 changed files with 141 additions and 156 deletions
+2 -2
View File
@@ -26,9 +26,9 @@
embeds: Embed[],
) => Promise<void>;
createReply?: (
commentId: string,
comment: string,
embeds: Embed[],
commentId: string,
) => Promise<void>;
reactOnComment?: (
commentId: string,
@@ -154,9 +154,9 @@
try {
submitInProgress = true;
await createReply(
root.id,
comment,
Array.from(embeds.values()),
root.id,
);
} finally {
showReplyForm = false;