summaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-27 11:12:47 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-27 11:12:47 +0100
commit7deed83dbb8835727c743662bee776794d460e74 (patch)
treedb66e3840c42c9c9a6964041d862a9d784ec4410 /src/ts
parentef7912256cb4765d553b002c24b9752c2d5096ac (diff)
chore: display comments as a tree
I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth.
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/comments.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ts/types/comments.ts b/src/ts/types/comments.ts
index d5c0052..75e7d23 100644
--- a/src/ts/types/comments.ts
+++ b/src/ts/types/comments.ts
@@ -20,6 +20,7 @@ export type Comment = {
date: string;
id: string;
parentDatabaseId: number;
+ parentId: string | null;
replies: Comment[];
};